From 4e93de5ee13330a2204603057b68c982af3eb36e Mon Sep 17 00:00:00 2001 From: staphen Date: Wed, 15 Sep 2021 23:43:41 -0400 Subject: [PATCH] Remove unnecessary precompiler check in virtual gamepad initialization --- Source/controls/touch/gamepad.cpp | 2 -- 1 file changed, 2 deletions(-) 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));