mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
oga_gfx: round width to nearest integer when scaling
This commit is contained in:
parent
4ca691acc9
commit
405b987986
@ -297,7 +297,7 @@ static bool oga_gfx_frame(void *data, const void *frame, unsigned width,
|
||||
|
||||
if ((out_w != width || out_h != height))
|
||||
{
|
||||
out_w = MIN(out_h * video_driver_get_aspect_ratio(), NATIVE_WIDTH);
|
||||
out_w = MIN(out_h * video_driver_get_aspect_ratio() + 0.5, NATIVE_WIDTH);
|
||||
out_x = MAX((NATIVE_WIDTH - out_w) / 2, 0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user