From 0496ede62f8b86e1885d594e3aa5320c96b708eb Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sat, 6 Jan 2018 14:40:02 +0100 Subject: GUI: Implement dirty-checking for widget redraws --- gui/widgets/scrollbar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui/widgets/scrollbar.h') diff --git a/gui/widgets/scrollbar.h b/gui/widgets/scrollbar.h index de7c13ce03..a1181b9e6c 100644 --- a/gui/widgets/scrollbar.h +++ b/gui/widgets/scrollbar.h @@ -69,7 +69,7 @@ public: void handleMouseWheel(int x, int y, int direction); void handleMouseMoved(int x, int y, int button); void handleMouseEntered(int button) { setFlags(WIDGET_HILITED); } - void handleMouseLeft(int button) { clearFlags(WIDGET_HILITED); _part = kNoPart; draw(); } + void handleMouseLeft(int button) { clearFlags(WIDGET_HILITED); _part = kNoPart; markAsDirty(); } void handleTickle(); // FIXME - this should be private, but then we also have to add accessors -- cgit v1.2.3