Skip to content

Commit

Permalink
Fix flickering of all animation and haloes.
Browse files Browse the repository at this point in the history
There was an erronous call left to display::flip() that caused the
flickering. The fix is simply to remove the function and the call to
it.
  • Loading branch information
aginor committed Apr 23, 2016
1 parent da82cbe commit 96e2c7b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
11 changes: 1 addition & 10 deletions src/display.cpp
Expand Up @@ -1399,13 +1399,6 @@ void display::toggle_debug_foreground()
debug_foreground = !debug_foreground;
}

void display::flip()
{

video().flip();

}

void display::post_draw() {
if(video().faked()) {
return;
Expand Down Expand Up @@ -1465,10 +1458,8 @@ void display::update_display()
} else if(fps_handle_ != 0) {
clear_fps_label();
}

flip();

}

#ifdef SDL_GPU
static void draw_panel(surface &target, const theme::panel& panel, std::vector<gui::button>& /*buttons*/)
#else
Expand Down
2 changes: 0 additions & 2 deletions src/display.hpp
Expand Up @@ -484,8 +484,6 @@ class display : public filter_context, public video2::draw_layering

terrain_builder& get_builder() {return *builder_;}

void flip();

/** Copy the backbuffer to the framebuffer. */
void update_display();

Expand Down
2 changes: 1 addition & 1 deletion src/game_display.cpp
Expand Up @@ -263,7 +263,7 @@ void game_display::pre_draw() {


void game_display::post_draw() {
display::pre_draw();
display::post_draw();
if (boost::shared_ptr<wb::manager> w = wb_.lock()) {
w->post_draw();
}
Expand Down

0 comments on commit 96e2c7b

Please sign in to comment.