Initialized default scale for software renderer (thanks Marcus von Appen!)
authorSam Lantinga
Mon, 01 Oct 2012 23:28:19 -0700
changeset 653258f726a2fc82
parent 6531 1ab2e34b90cc
child 6533 c784245304dd
Initialized default scale for software renderer (thanks Marcus von Appen!)
src/render/SDL_render.c
     1.1 --- a/src/render/SDL_render.c	Mon Oct 01 23:23:04 2012 -0700
     1.2 +++ b/src/render/SDL_render.c	Mon Oct 01 23:28:19 2012 -0700
     1.3 @@ -268,8 +268,6 @@
     1.4          renderer->window = window;
     1.5          renderer->scale.x = 1.0f;
     1.6          renderer->scale.y = 1.0f;
     1.7 -        renderer->logical_w = 0;
     1.8 -        renderer->logical_h = 0;
     1.9  
    1.10          if (SDL_GetWindowFlags(window) & (SDL_WINDOW_HIDDEN|SDL_WINDOW_MINIMIZED)) {
    1.11              renderer->hidden = SDL_TRUE;
    1.12 @@ -299,6 +297,8 @@
    1.13  
    1.14      if (renderer) {
    1.15          renderer->magic = &renderer_magic;
    1.16 +        renderer->scale.x = 1.0f;
    1.17 +        renderer->scale.y = 1.0f;
    1.18  
    1.19          SDL_RenderSetViewport(renderer, NULL);
    1.20      }