Use double for maintas

This commit is contained in:
andrews05 2023-10-31 18:39:55 +13:00
parent 312dd07312
commit 6eec244378
3 changed files with 6 additions and 6 deletions

View file

@ -381,11 +381,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)(((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)(((double)dst_rc.right / dst_rc.bottom) * h);
dst_rc.bottom = h;
}