Browse Source

Remove unnecessary precompiler check in virtual gamepad initialization

pull/2880/head
staphen 5 years ago committed by Anders Jenbo
parent
commit
4e93de5ee1
  1. 2
      Source/controls/touch/gamepad.cpp

2
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));

Loading…
Cancel
Save