Skip to content

Commit

Permalink
Call CVideo::flip() instead of display::flip() in GUI1
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jan 12, 2016
1 parent 41dab9f commit 716b6e8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/construct_dialog.cpp
Expand Up @@ -366,7 +366,7 @@ void dialog::draw_contents()
}
events::raise_draw_event(); //draw widgets

disp_.flip();
disp_.video().flip();
}

dialog_frame& dialog::get_frame()
Expand Down Expand Up @@ -460,7 +460,7 @@ void dialog::update_widget_positions()

void dialog::refresh()
{
disp_.flip();
disp_.video().flip();
CVideo::delay(10);
}

Expand Down
8 changes: 4 additions & 4 deletions src/dialogs.cpp
Expand Up @@ -1181,7 +1181,7 @@ static network::connection network_data_dialog(display& disp, const std::string&
progress.set_location(progress_rect);

events::raise_draw_event();
disp.flip();
disp.video().flip();

network::statistics old_stats = get_stats(connection_num);

Expand All @@ -1198,7 +1198,7 @@ static network::connection network_data_dialog(display& disp, const std::string&
}

events::raise_draw_event();
disp.flip();
disp.video().flip();
events::pump();

if(res != 0) {
Expand Down Expand Up @@ -1243,7 +1243,7 @@ class connect_waiter : public threading::waiter
connect_waiter::ACTION connect_waiter::process()
{
events::raise_draw_event();
disp_.flip();
disp_.video().flip();
events::pump();
if(button_.pressed()) {
return ABORT;
Expand Down Expand Up @@ -1274,7 +1274,7 @@ network::connection network_connect_dialog(display& disp, const std::string& msg
frame.draw();

events::raise_draw_event();
disp.flip();
disp.video().flip();

connect_waiter waiter(disp,cancel_button);
return network::connect(hostname,port,waiter);
Expand Down
4 changes: 2 additions & 2 deletions src/help/help.cpp
Expand Up @@ -220,7 +220,7 @@ void show_help(display &disp, const section &toplevel_sec,
}
hb.set_dirty(true);
events::raise_draw_event();
disp.flip();
disp.video().flip();
CKey key;
for (;;) {
events::pump();
Expand All @@ -238,7 +238,7 @@ void show_help(display &disp, const section &toplevel_sec,
return;
}
}
disp.flip();
disp.video().flip();
CVideo::delay(10);
}
}
Expand Down

0 comments on commit 716b6e8

Please sign in to comment.