Added better detection/warning for 24-bit video modes.

This commit is contained in:
zsknight
2001-04-28 00:26:36 +00:00
parent 51290b6ebb
commit d2e88cf649

View File

@@ -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;