Fixed clobbering viewport when window is resized when using the software renderer. The viewport adjustment is already handled in the top level rendering code.
authorSam Lantinga <slouken@libsdl.org>
Tue, 06 Aug 2013 22:31:11 -0700
changeset 7582fb276f54cd07
parent 7581 c6b4fab28e00
child 7583 7e053ad01aa3
Fixed clobbering viewport when window is resized when using the software renderer. The viewport adjustment is already handled in the top level rendering code.
src/render/software/SDL_render_sw.c
     1.1 --- a/src/render/software/SDL_render_sw.c	Tue Aug 06 18:23:46 2013 -0700
     1.2 +++ b/src/render/software/SDL_render_sw.c	Tue Aug 06 22:31:11 2013 -0700
     1.3 @@ -114,8 +114,6 @@
     1.4          SDL_Surface *surface = SDL_GetWindowSurface(renderer->window);
     1.5          if (surface) {
     1.6              data->surface = data->window = surface;
     1.7 -            renderer->viewport.w = surface->w;
     1.8 -            renderer->viewport.h = surface->h;
     1.9  
    1.10              SW_UpdateViewport(renderer);
    1.11              SW_UpdateClipRect(renderer);