mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Revert "Integer scale fix for windowed mode"
This reverts commit 4ec9fe5a57ee22558f6faa1f931910ec4a296064.
This commit is contained in:
parent
2936b1940a
commit
3667690027
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user