Skip to content

Commit

Permalink
Remove perssimstic do_paint call
Browse files Browse the repository at this point in the history
This do_paint call was added in 8995974
but I don't think it was intentional; it looks like an accidental commit
of something during debugging.

The intent is that we tick over and paint every tick (~50ms) and this
behavior here was causing us to paint after every input event, which is
undesirable when processing the selection.

refs: #33
  • Loading branch information
wez committed Jun 12, 2019
1 parent b31e9ec commit 7471774
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/frontend/glium/glutinloop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,7 @@ impl GuiEventLoop {
let result = self.process_gui_event(&event);

match result {
Ok(Continue) => {
self.do_paint();
Continue
}
Ok(Continue) => Continue,
Ok(Break) => Break,
Err(err) => {
error!("Error in event loop: {:?}", err);
Expand Down

0 comments on commit 7471774

Please sign in to comment.