mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 12:25:37 +00:00
Revert previous commit a50ca98e2b
(see bug #4625)
This commit is contained in:
parent
a50ca98e2b
commit
70c8d20a46
|
@ -2266,9 +2266,9 @@ UpdateLogicalSize(SDL_Renderer *renderer)
|
|||
|
||||
if (renderer->integer_scale) {
|
||||
if (want_aspect > real_aspect) {
|
||||
scale = (float)w / renderer->logical_w;
|
||||
scale = (float)(w / renderer->logical_w);
|
||||
} else {
|
||||
scale = (float)h / renderer->logical_h;
|
||||
scale = (float)(h / renderer->logical_h);
|
||||
}
|
||||
viewport.w = (int)SDL_floor(renderer->logical_w * scale);
|
||||
viewport.x = (w - viewport.w) / 2;
|
||||
|
|
Loading…
Reference in a new issue