This commit is contained in:
cxgeorge 2002-10-09 00:07:03 +00:00
parent 273697401b
commit 4efff2aded

View File

@ -1601,13 +1601,14 @@ verify_window_sizes(unsigned int numsizes,unsigned int *dimen) {
bool bIsGoodMode=false; bool bIsGoodMode=false;
if(DMI.supportedBitDepths & (DDBD_16 | DDBD_24 | DDBD_32)) {
if(special_check_fullscreen_resolution(xsize,ysize)) { if(special_check_fullscreen_resolution(xsize,ysize)) {
// bypass the test below for certain cards we know have valid modes // bypass the test below for certain cards we know have valid modes
bIsGoodMode=true; bIsGoodMode=true;
} else { } else {
if(_dxgsg->scrn.bIsLowVidMemCard) if(_dxgsg->scrn.bIsLowVidMemCard)
bIsGoodMode=(((float)xsize*(float)ysize)<=(float)(640*480)); bIsGoodMode=(((float)xsize*(float)ysize)<=(float)(640*480));
else if(DMI.supportedBitDepths & (DDBD_16 | DDBD_24 | DDBD_32)) { else {
// assume user is testing fullscreen, not windowed, so use the dwTotal value // assume user is testing fullscreen, not windowed, so use the dwTotal value
// see if 3 scrnbufs (front/back/z)at 16bpp at xsize*ysize will fit with a few // see if 3 scrnbufs (front/back/z)at 16bpp at xsize*ysize will fit with a few
// extra megs for texmem // extra megs for texmem