mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
fix problem creating fullscreen dx7 windows
This commit is contained in:
parent
c4caabf006
commit
4ceb93f312
@ -1096,7 +1096,7 @@ search_for_device(int devnum, DXDeviceInfo *pDevinfo) {
|
||||
dx_force_16bpp_zbuffer = true;
|
||||
}
|
||||
|
||||
if (dx_full_screen) {
|
||||
if (is_fullscreen()) {
|
||||
DX_DECLARE_CLEAN(DDSURFACEDESC2,ddsd_search);
|
||||
ddsd_search.dwFlags = DDSD_HEIGHT | DDSD_WIDTH;
|
||||
ddsd_search.dwWidth = dwRenderWidth;
|
||||
@ -1274,7 +1274,7 @@ set_coop_levels_and_display_modes() {
|
||||
}
|
||||
|
||||
// note: its important we call SetDisplayMode on all cards before
|
||||
// creating surfaces on any of them let driver choose default
|
||||
// creating surfaces on any of them to let driver choose default
|
||||
// refresh rate (hopefully its >=60Hz)
|
||||
hr = pScrn->pDD->SetDisplayMode(pScrn->dwRenderWidth,
|
||||
pScrn->dwRenderHeight,
|
||||
|
Loading…
x
Reference in New Issue
Block a user