From d6b3d7d4b1d0921123c9aa8ceadfef9f9b698874 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sat, 15 Feb 2020 16:56:08 +0000 Subject: [PATCH] Fix RG350 video settings 1. Can't use HWSURFACE, as the code doesn't lock it. Double-buffering with HWSURFACE would be an alternative but the current game rendering code doesn't play well with it due to how it updates the UI 2. RG350 screen is RGB, not BGR (my microscope flipped the image), 16-bit is the correct color depth. --- CMake/rg350_defs.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMake/rg350_defs.cmake b/CMake/rg350_defs.cmake index 0ffceb19d..5eb323991 100644 --- a/CMake/rg350_defs.cmake +++ b/CMake/rg350_defs.cmake @@ -1,8 +1,7 @@ set(sodium_USE_STATIC_LIBS ON) set(NONET ON) set(USE_SDL1 ON) -set(SDL1_VIDEO_MODE_BPP 15) # BGR -set(SDL1_VIDEO_MODE_FLAGS SDL_HWSURFACE) +set(SDL1_VIDEO_MODE_BPP 16) set(PREFILL_PLAYER_NAME ON) set(JOY_AXIS_LEFTX 0) set(JOY_AXIS_LEFTY 1)