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:
OBattler
2017-06-11 18:58:36 +02:00
parent c445d970be
commit 7b1a96302e
2 changed files with 7 additions and 2 deletions

View File

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

View File

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