Skip to content

Commit

Permalink
Fix flickering panels.
Browse files Browse the repository at this point in the history
  • Loading branch information
lipk committed Jul 17, 2014
1 parent 50410cb commit e8f5a4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/display.cpp
Expand Up @@ -1746,14 +1746,10 @@ void display::draw_init()
invalidateAll_ = true;
}

#ifdef SDL_GPU
draw_all_panels();
#else
if(!panelsDrawn_) {
draw_all_panels();
panelsDrawn_ = true;
}
#endif

if(redraw_background_) {
// Full redraw of the background
Expand Down
4 changes: 4 additions & 0 deletions src/game_display.cpp
Expand Up @@ -466,6 +466,10 @@ void game_display::draw_sidebar()
{
wb::future_map future; // start planned unit map scope

#ifdef SDL_GPU
draw_all_panels();
#endif

// We display the unit the mouse is over if it is over a unit,
// otherwise we display the unit that is selected.
BOOST_FOREACH(const std::string &name, reports::report_list()) {
Expand Down

0 comments on commit e8f5a4e

Please sign in to comment.