Fixed compile warnings about type conversion.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 16 Jan 2016 21:25:10 +0100
changeset 10054 fb06163059bf
parent 10053 d710a7a66aa5
child 10055 b2fd76446eee
Fixed compile warnings about type conversion. Found by buildbot.
src/render/SDL_render.c
--- a/src/render/SDL_render.c	Wed Jan 13 19:31:03 2016 +0100
+++ b/src/render/SDL_render.c	Sat Jan 16 21:25:10 2016 +0100
@@ -1156,9 +1156,9 @@
 
     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;