From ddd76360e1cb8012d1154752e6d9b66f3c7b9f30 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 15 Sep 2024 17:55:48 +0300 Subject: [PATCH] Allow 16-bit only if D3D9 is selected. --- od-win32/win32gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/od-win32/win32gfx.cpp b/od-win32/win32gfx.cpp index c93bbdd8..f625444c 100644 --- a/od-win32/win32gfx.cpp +++ b/od-win32/win32gfx.cpp @@ -1892,7 +1892,7 @@ static void update_gfxparams(struct AmigaMonitor *mon) #if FORCE16BIT mon->currentmode.current_depth = 16; #else - mon->currentmode.current_depth = currprefs.color_mode < 5 ? 16 : 32; + mon->currentmode.current_depth = currprefs.color_mode < 5 && currprefs.gfx_api == 1 ? 16 : 32; #endif if (mon->screen_is_picasso && canmatchdepth() && isfullscreen () > 0) { int pbits = state->BytesPerPixel * 8; -- 2.47.3