mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
oops
This commit is contained in:
parent
273697401b
commit
4efff2aded
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user