Browse Source

💚 Fix SDL2 builds

pull/1113/head
Anders Jenbo 5 years ago
parent
commit
af7a0e56fa
  1. 2
      SourceX/controls/touch.cpp

2
SourceX/controls/touch.cpp

@ -90,7 +90,7 @@ static void init_touch(void)
SDL_DisplayMode current;
SDL_GetCurrentDisplayMode(0, &current);
visible_height = current.h;
visible_width = (current.h * gnScreenWidth) / gnScreenHeight;
visible_width = (current.h * dvl::gnScreenWidth) / dvl::gnScreenHeight;
x_borderwidth = (current.w - visible_width) / 2;
y_borderwidth = (current.h - visible_height) / 2;
#ifdef __vita__

Loading…
Cancel
Save