winport: fix occasional garbage subscreen rect in one LCD mode (fix #6)
This commit is contained in:
parent
36b192af00
commit
be11b35df9
|
@ -1214,6 +1214,7 @@ void UpdateWndRects(HWND hwnd)
|
||||||
ClientToScreen(hwnd, &ptClient);
|
ClientToScreen(hwnd, &ptClient);
|
||||||
MainScreenRect.right = ptClient.x;
|
MainScreenRect.right = ptClient.x;
|
||||||
MainScreenRect.bottom = ptClient.y;
|
MainScreenRect.bottom = ptClient.y;
|
||||||
|
SetRectEmpty(&SubScreenRect);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (video.layout == 0) //vertical
|
if (video.layout == 0) //vertical
|
||||||
|
@ -1699,7 +1700,6 @@ static void OGL_DoDisplay()
|
||||||
|
|
||||||
for(int i=0;i<2;i++)
|
for(int i=0;i<2;i++)
|
||||||
{
|
{
|
||||||
|
|
||||||
//none of this makes any goddamn sense. dont even try.
|
//none of this makes any goddamn sense. dont even try.
|
||||||
int idx = i;
|
int idx = i;
|
||||||
int ofs = 0;
|
int ofs = 0;
|
||||||
|
|
Loading…
Reference in New Issue