Skip to content

Commit

Permalink
Invalidate whole screen when scrolling on SDL_gpu builds.
Browse files Browse the repository at this point in the history
A (hopefully) temporary fix for rendering issues when scrolling.
  • Loading branch information
lipk committed Jul 17, 2014
1 parent 4c027be commit a053fdd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/display.cpp
Expand Up @@ -2170,7 +2170,11 @@ bool display::scroll(int xmove, int ymove, bool force)
invalidate_locations_in_rect(r);
}
scroll_event_.notify_observers();
#ifdef SDL_GPU
invalidate_all();
#else
update_rect(map_area());
#endif

redrawMinimap_ = true;
return true;
Expand Down

0 comments on commit a053fdd

Please sign in to comment.