Fixed compile warnings about type conversion.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 16 Jan 2016 21:25:10 +0100
changeset 10054fb06163059bf
parent 10053 d710a7a66aa5
child 10055 b2fd76446eee
Fixed compile warnings about type conversion.

Found by buildbot.
src/render/SDL_render.c
     1.1 --- a/src/render/SDL_render.c	Wed Jan 13 19:31:03 2016 +0100
     1.2 +++ b/src/render/SDL_render.c	Sat Jan 16 21:25:10 2016 +0100
     1.3 @@ -1156,9 +1156,9 @@
     1.4  
     1.5      if (renderer->integer_scale) {
     1.6          if (want_aspect > real_aspect) {
     1.7 -            scale = w / renderer->logical_w;
     1.8 +            scale = (float)(w / renderer->logical_w);
     1.9          } else {
    1.10 -            scale = h / renderer->logical_h;
    1.11 +            scale = (float)(h / renderer->logical_h);
    1.12          }
    1.13          viewport.w = (int)SDL_ceil(renderer->logical_w * scale);
    1.14          viewport.x = (w - viewport.w) / 2;