src/render/SDL_render.c
changeset 8654 275c4c82803b
parent 8650 058c88ce501c
child 8728 c7174f961388
     1.1 --- a/src/render/SDL_render.c	Thu Mar 20 16:05:57 2014 -0400
     1.2 +++ b/src/render/SDL_render.c	Thu Mar 20 16:23:18 2014 -0400
     1.3 @@ -350,7 +350,7 @@
     1.4          SDL_GetWindowSize(renderer->window, w, h);
     1.5          return 0;
     1.6      } else {
     1.7 -        /* This should never happen */
     1.8 +        SDL_assert(0 && "This should never happen");
     1.9          return SDL_SetError("Renderer doesn't support querying output size");
    1.10      }
    1.11  }
    1.12 @@ -1117,7 +1117,7 @@
    1.13  static int
    1.14  UpdateLogicalSize(SDL_Renderer *renderer)
    1.15  {
    1.16 -    int w, h;
    1.17 +    int w = 1, h = 1;
    1.18      float want_aspect;
    1.19      float real_aspect;
    1.20      float scale;