From d2e88cf649fc1acf4cfa46e9a54499f59f58c2d4 Mon Sep 17 00:00:00 2001 From: zsknight <> Date: Sat, 28 Apr 2001 00:26:36 +0000 Subject: [PATCH] Added better detection/warning for 24-bit video modes. --- zsnes/src/win/winlink.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zsnes/src/win/winlink.cpp b/zsnes/src/win/winlink.cpp index a67f1b49..fdb2d53a 100644 --- a/zsnes/src/win/winlink.cpp +++ b/zsnes/src/win/winlink.cpp @@ -1092,6 +1092,12 @@ startgame() BitDepth=format.dwRGBBitCount; GBitMask=format.dwGBitMask; // 0x07E0 or not + if (BitDepth==24) + { + MessageBox(NULL,"ZSNESw does not support 24bit color.\nPlease change your resolution to either 16bit or 32bit color","Error",MB_OK); + exit(0); + } + if(BitDepth==16&& GBitMask!=0x07E0) { converta=1;