some more maintas tweaks

This commit is contained in:
FunkyFr3sh 2023-12-31 04:35:08 +01:00
parent a863d8cb33
commit 3e4833bda7
3 changed files with 11 additions and 11 deletions

View file

@ -382,11 +382,11 @@ void util_toggle_maximize()
dst_rc.top = 0;
dst_rc.left = 0;
dst_rc.right = w;
dst_rc.bottom = (LONG)(((float)g_ddraw->height / g_ddraw->width) * w);
dst_rc.bottom = (LONG)round(((double)g_ddraw->height / g_ddraw->width) * w);
if (dst_rc.bottom > h)
{
dst_rc.right = (LONG)(((float)dst_rc.right / dst_rc.bottom) * h);
dst_rc.right = (LONG)round(((double)dst_rc.right / dst_rc.bottom) * h);
dst_rc.bottom = h;
}