Merge pull request #11277 from valadaa48/oga_gfx_round_width

oga_gfx: round width to nearest integer when scaling
This commit is contained in:
Autechre 2020-09-04 04:59:31 +02:00 committed by GitHub
commit 5ce53c3c01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}