Revert "Integer scale fix for windowed mode"

This reverts commit 4ec9fe5a57ee22558f6faa1f931910ec4a296064.
This commit is contained in:
twinaphex 2020-01-03 13:55:01 +01:00
parent 2936b1940a
commit 3667690027

View File

@ -21401,10 +21401,8 @@ void video_viewport_get_scaled_integer(struct video_viewport *vp,
if (keep_aspect)
{
/* X/Y scale must be same. */
unsigned max_scale = MIN(
(unsigned)roundf((float)width / base_width),
(unsigned)roundf((height / base_height)));
unsigned max_scale = MIN(width / base_width,
height / base_height);
padding_x = width - base_width * max_scale;
padding_y = height - base_height * max_scale;
}