If win_doresize is set to 1, the WM_SIZE message handler only handles the status bar's size and does not resize the window again, reduces excess window resizes.
This commit is contained in:
@@ -2157,6 +2157,12 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
|
||||
break;
|
||||
|
||||
case WM_SIZE:
|
||||
if (win_doresize)
|
||||
{
|
||||
MoveWindow(hwndStatus, 0, winsizey + 6, winsizex, 17, TRUE);
|
||||
break;
|
||||
}
|
||||
|
||||
winsizex = (lParam & 0xFFFF);
|
||||
winsizey = (lParam >> 16) - (17 + 6);
|
||||
|
||||
|
||||
@@ -125,9 +125,8 @@ static void ddraw_blit_memtoscreen(int x, int y, int y1, int y2, int w, int h)
|
||||
{
|
||||
RECT r_src;
|
||||
RECT r_dest;
|
||||
int xx, yy;
|
||||
int yy;
|
||||
POINT po;
|
||||
uint32_t *p;
|
||||
HRESULT hr;
|
||||
// pclog("Blit memtoscreen %i,%i %i %i %i,%i\n", x, y, y1, y2, w, h);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user