fix bug in 640x480 forced mode

This commit is contained in:
cxgeorge 2001-07-23 04:23:20 +00:00
parent 0632f51137
commit 7ca1734cc8

View File

@ -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