Revert "Use double for maintas"

This reverts commit 6eec244378.
This commit is contained in:
FunkyFr3sh 2023-12-29 01:35:44 +01:00
parent 9e8f24f38d
commit ff1c8fb0a3
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)(((double)g_ddraw->height / g_ddraw->width) * w);
dst_rc.bottom = (LONG)(((float)g_ddraw->height / g_ddraw->width) * w);
if (dst_rc.bottom > h)
{
dst_rc.right = (LONG)(((double)dst_rc.right / dst_rc.bottom) * h);
dst_rc.right = (LONG)(((float)dst_rc.right / dst_rc.bottom) * h);
dst_rc.bottom = h;
}