diff --git a/UI/window-basic-settings.cpp b/UI/window-basic-settings.cpp index f1c257d28..661662805 100644 --- a/UI/window-basic-settings.cpp +++ b/UI/window-basic-settings.cpp @@ -294,14 +294,9 @@ static void PopulateAACBitrates(initializer_list boxes) } } -static int gcd(int a, int b) -{ - return b == 0 ? a : gcd(b, a % b); -} - static std::tuple aspect_ratio(int cx, int cy) { - int common = gcd(cx, cy); + int common = std::gcd(cx, cy); int newCX = cx / common; int newCY = cy / common;