Skip to content

Commit

Permalink
Fixed compile warnings about type conversion.
Browse files Browse the repository at this point in the history
Found by buildbot.
  • Loading branch information
philippwiesemann committed Jan 16, 2016
1 parent 2191abb commit 0a1999d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/render/SDL_render.c
Expand Up @@ -1156,9 +1156,9 @@ UpdateLogicalSize(SDL_Renderer *renderer)

if (renderer->integer_scale) {
if (want_aspect > real_aspect) {
scale = w / renderer->logical_w;
scale = (float)(w / renderer->logical_w);
} else {
scale = h / renderer->logical_h;
scale = (float)(h / renderer->logical_h);
}
viewport.w = (int)SDL_ceil(renderer->logical_w * scale);
viewport.x = (w - viewport.w) / 2;
Expand Down

0 comments on commit 0a1999d

Please sign in to comment.