src/render/software/SDL_render_sw.c
changeset 5298 7b1cac2c2230
parent 5297 1800dc39b74c
child 5332 ae8b6fb1feaf
equal deleted inserted replaced
5297:1800dc39b74c 5298:7b1cac2c2230
   286     if (!renderer->viewport.w && !renderer->viewport.h) {
   286     if (!renderer->viewport.w && !renderer->viewport.h) {
   287         /* There may be no window, so update the viewport directly */
   287         /* There may be no window, so update the viewport directly */
   288         renderer->viewport.w = surface->w;
   288         renderer->viewport.w = surface->w;
   289         renderer->viewport.h = surface->h;
   289         renderer->viewport.h = surface->h;
   290     }
   290     }
   291     //SDL_SetClipRect(data->surface, &renderer->viewport);
   291     SDL_SetClipRect(data->surface, &renderer->viewport);
   292     return 0;
   292     return 0;
   293 }
   293 }
   294 
   294 
   295 static int
   295 static int
   296 SW_RenderClear(SDL_Renderer * renderer)
   296 SW_RenderClear(SDL_Renderer * renderer)