From 0a1999dfd2357dc0aefec1b602e1a16fb2f25aa0 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sat, 16 Jan 2016 21:25:10 +0100 Subject: [PATCH] Fixed compile warnings about type conversion. Found by buildbot. --- src/render/SDL_render.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c index 23df88486..097ffa027 100644 --- a/src/render/SDL_render.c +++ b/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;