diff --git a/Source/controls/touch/gamepad.cpp b/Source/controls/touch/gamepad.cpp index e7e6f7654..c97c46ede 100644 --- a/Source/controls/touch/gamepad.cpp +++ b/Source/controls/touch/gamepad.cpp @@ -53,7 +53,6 @@ void InitializeVirtualGamepad() int padButtonSize = round(1.1 * screenPixels / 10); int padButtonSpacing = inputMargin / 3; -#ifndef USE_SDL1 float hdpi; float vdpi; int displayIndex = SDL_GetWindowDisplayIndex(ghMainWnd); @@ -70,7 +69,6 @@ void InitializeVirtualGamepad() padButtonSize = round(0.3 * dpi); padButtonSpacing = round(0.1 * dpi); } -#endif int padButtonAreaWidth = round(std::sqrt(2) * (padButtonSize + padButtonSpacing));