From 6c343b125f6bb87885ffdfc007d4de22a054c70e Mon Sep 17 00:00:00 2001 From: tomikun <60690056+alexytomi@users.noreply.github.com> Date: Thu, 23 Jul 2026 01:44:42 +0800 Subject: [PATCH] FIXME: Jank "fix" to washed out colors on SDL FIXME: Try undoing this when MobileGLues/MobileGL accurately translates/emulates EGL --- app_pojavlauncher/src/main/jni/native_hooks/sdl_hook.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app_pojavlauncher/src/main/jni/native_hooks/sdl_hook.c b/app_pojavlauncher/src/main/jni/native_hooks/sdl_hook.c index dca3a6344..81b6e4d17 100644 --- a/app_pojavlauncher/src/main/jni/native_hooks/sdl_hook.c +++ b/app_pojavlauncher/src/main/jni/native_hooks/sdl_hook.c @@ -61,6 +61,8 @@ static bool custom_SDL_InitSubSystem_Func(SDL_InitFlags flags) { // This is the normal for the launcher, the default in SDL is false. SET_DLSYM_PTR(SDL_SetHint); if (SDL_SetHint_p) SDL_SetHint_p("SDL_RETURN_KEY_HIDES_IME", "true"); + // FIXME: idk why it wont srgb, sorry + SDL_SetHint_p("SDL_OPENGL_FORCE_SRGB_FRAMEBUFFER", "0"); // Call original func after doing all the needed setup bool r = BYTEHOOK_CALL_PREV(custom_SDL_InitSubSystem_Func, SDL_InitSubSystem_t, flags);