Commit 0a1999dfd2357dc0aefec1b602e1a16fb2f25aa0

Philipp Wiesemann 2016-01-16T21:25:10

Fixed compile warnings about type conversion. Found by buildbot.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c
index 23df884..097ffa0 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;