mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
fix bug in 640x480 forced mode
This commit is contained in:
parent
0632f51137
commit
7ca1734cc8
@ -875,7 +875,6 @@ dx_setup() {
|
|||||||
dwRenderWidth = _props._xsize;
|
dwRenderWidth = _props._xsize;
|
||||||
dwRenderHeight = _props._ysize;
|
dwRenderHeight = _props._ysize;
|
||||||
_props._xorg = _props._yorg = 0;
|
_props._xorg = _props._yorg = 0;
|
||||||
SetRect(&view_rect, _props._xorg, _props._yorg, _props._xsize, _props._ysize);
|
|
||||||
|
|
||||||
// CREATE FULL SCREEN BUFFERS
|
// CREATE FULL SCREEN BUFFERS
|
||||||
// Store the rectangle which contains the renderer
|
// Store the rectangle which contains the renderer
|
||||||
@ -1062,6 +1061,9 @@ dx_setup() {
|
|||||||
<< "Blt to Black of Back Surf failed! : result = " << ConvD3DErrorToString(hr) << endl;
|
<< "Blt to Black of Back Surf failed! : result = " << ConvD3DErrorToString(hr) << endl;
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SetRect(&view_rect, 0, 0, dwRenderWidth, dwRenderHeight);
|
||||||
|
|
||||||
} // end create full screen buffers
|
} // end create full screen buffers
|
||||||
|
|
||||||
else { // CREATE WINDOWED BUFFERS
|
else { // CREATE WINDOWED BUFFERS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user