Skip to content
Permalink
Browse files

Fixed compile warnings about type conversion.

Found by buildbot.
  • Loading branch information
philippwiesemann committed Jan 16, 2016
1 parent 2191abb commit 0a1999dfd2357dc0aefec1b602e1a16fb2f25aa0
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/render/SDL_render.c
@@ -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;

0 comments on commit 0a1999d

Please sign in to comment.