mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +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_TOPRIGHT:
|
||||||
case WMSZ_BOTTOMRIGHT:
|
case WMSZ_BOTTOMRIGHT:
|
||||||
case WMSZ_RIGHT:
|
case WMSZ_RIGHT:
|
||||||
|
case WMSZ_BOTTOM:
|
||||||
|
case WMSZ_TOP:
|
||||||
{
|
{
|
||||||
windowrc->right += ddraw->width - clientrc.right;
|
windowrc->right += ddraw->width - clientrc.right;
|
||||||
break;
|
break;
|
||||||
@ -811,6 +813,8 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
case WMSZ_BOTTOMLEFT:
|
case WMSZ_BOTTOMLEFT:
|
||||||
case WMSZ_BOTTOMRIGHT:
|
case WMSZ_BOTTOMRIGHT:
|
||||||
case WMSZ_BOTTOM:
|
case WMSZ_BOTTOM:
|
||||||
|
case WMSZ_RIGHT:
|
||||||
|
case WMSZ_LEFT:
|
||||||
{
|
{
|
||||||
windowrc->bottom += ddraw->height - clientrc.bottom;
|
windowrc->bottom += ddraw->height - clientrc.bottom;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user