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:
parent
ff5fcec431
commit
5e121fd76b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user