From af7a0e56fa629def8a802d9c2f0b7c0318a5f584 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sat, 6 Mar 2021 06:00:09 +0100 Subject: [PATCH] :green_heart: Fix SDL2 builds --- SourceX/controls/touch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SourceX/controls/touch.cpp b/SourceX/controls/touch.cpp index b97d58853..0c588162b 100644 --- a/SourceX/controls/touch.cpp +++ b/SourceX/controls/touch.cpp @@ -90,7 +90,7 @@ static void init_touch(void) SDL_DisplayMode current; SDL_GetCurrentDisplayMode(0, ¤t); 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__