]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Allow 16-bit only if D3D9 is selected.
authorToni Wilen <twilen@winuae.net>
Sun, 15 Sep 2024 14:55:48 +0000 (17:55 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 15 Sep 2024 14:55:48 +0000 (17:55 +0300)
od-win32/win32gfx.cpp

index c93bbdd82e3c0db6144a5134ee1fdc880785f9a4..f625444ceefe750a53144cba913ecff1fa2d9245 100644 (file)
@@ -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;