diff --git a/src/main.c b/src/main.c index 0e346f0..50c0831 100644 --- a/src/main.c +++ b/src/main.c @@ -876,7 +876,8 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { WindowRect.right = LOWORD(lParam); WindowRect.bottom = HIWORD(lParam); - ddraw_SetDisplayMode(ddraw, ddraw->width, ddraw->height, ddraw->bpp); + if (WindowRect.right != ddraw->render.width || WindowRect.bottom != ddraw->render.height) + ddraw_SetDisplayMode(ddraw, ddraw->width, ddraw->height, ddraw->bpp); } } }