Skip to content

Commit

Permalink
Add temporary workaround for flickering on Windows.
Browse files Browse the repository at this point in the history
See linebender#875 for details.
  • Loading branch information
luleyleo committed Apr 24, 2020
1 parent 7bb8b65 commit ad62172
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions druid-shell/src/platform/windows/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1200,6 +1200,9 @@ impl WindowHandle {
}

pub fn invalidate_rect(&self, rect: Rect) {
// FIXME: This is a temporary workaround for #875
self.invalidate();

let r = self.px_to_rect(rect);
if let Some(w) = self.state.upgrade() {
let hwnd = w.hwnd.get();
Expand Down

0 comments on commit ad62172

Please sign in to comment.