mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -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;
|
||||
dwRenderHeight = _props._ysize;
|
||||
_props._xorg = _props._yorg = 0;
|
||||
SetRect(&view_rect, _props._xorg, _props._yorg, _props._xsize, _props._ysize);
|
||||
|
||||
// CREATE FULL SCREEN BUFFERS
|
||||
// Store the rectangle which contains the renderer
|
||||
@ -1062,6 +1061,9 @@ dx_setup() {
|
||||
<< "Blt to Black of Back Surf failed! : result = " << ConvD3DErrorToString(hr) << endl;
|
||||
exit(1);
|
||||
}
|
||||
|
||||
SetRect(&view_rect, 0, 0, dwRenderWidth, dwRenderHeight);
|
||||
|
||||
} // end create full screen buffers
|
||||
|
||||
else { // CREATE WINDOWED BUFFERS
|
||||
|
Loading…
x
Reference in New Issue
Block a user