1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

fix for maintain aspect ratio

This commit is contained in:
FunkyFr3sh 2018-10-28 13:00:50 +01:00
parent ff5fcec431
commit 5e121fd76b

View File

@ -790,6 +790,8 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WMSZ_TOPRIGHT:
case WMSZ_BOTTOMRIGHT:
case WMSZ_RIGHT:
case WMSZ_BOTTOM:
case WMSZ_TOP:
{
windowrc->right += ddraw->width - clientrc.right;
break;
@ -811,6 +813,8 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WMSZ_BOTTOMLEFT:
case WMSZ_BOTTOMRIGHT:
case WMSZ_BOTTOM:
case WMSZ_RIGHT:
case WMSZ_LEFT:
{
windowrc->bottom += ddraw->height - clientrc.bottom;
break;