Clean up display::clear_screen

This commit is contained in:
Charles Dang 2017-05-26 16:03:43 +11:00
parent 4f48d09ac8
commit a221d40abf

View file

@ -2470,9 +2470,7 @@ const map_labels& display::labels() const
void display::clear_screen()
{
surface& disp(screen_.getSurface());
SDL_Rect area = screen_area();
sdl::fill_rect(disp, &area, SDL_MapRGB(disp->format, 0, 0, 0));
screen_.get_window()->fill(0, 0, 0, 255);
}
const SDL_Rect& display::get_clip_rect()