From: Toni Wilen Date: Sun, 15 Sep 2024 14:55:48 +0000 (+0300) Subject: Allow 16-bit only if D3D9 is selected. X-Git-Tag: 5310~18 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=ddd76360e1cb8012d1154752e6d9b66f3c7b9f30;p=francis%2Fwinuae.git Allow 16-bit only if D3D9 is selected. --- 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;