From a0c5ca01a54ff1bc1c32777fa9a621f607ca29cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Mon, 22 May 2006 09:55:39 +0000 Subject: [PATCH] using Draw(); Flush(); doesn't get a clean background to draw on, other controls should be fixed as well... this should fix the text becomming thick when repeatedly clicking a check box git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17524 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/CheckBox.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/kits/interface/CheckBox.cpp b/src/kits/interface/CheckBox.cpp index 2ad8f6a3b4..fea66a7608 100644 --- a/src/kits/interface/CheckBox.cpp +++ b/src/kits/interface/CheckBox.cpp @@ -233,8 +233,8 @@ BCheckBox::MouseDown(BPoint point) BRect bounds = Bounds(); uint32 buttons; - Draw(Bounds()); - Flush(); + Invalidate(); + Window()->UpdateIfNeeded(); do { snooze(40000); @@ -245,8 +245,8 @@ BCheckBox::MouseDown(BPoint point) if (fOutlined != inside) { fOutlined = inside; - Draw(Bounds()); - Flush(); + Invalidate(); + Window()->UpdateIfNeeded(); } } while (buttons != 0); @@ -255,8 +255,8 @@ BCheckBox::MouseDown(BPoint point) SetValue(!Value()); Invoke(); } else { - Draw(Bounds()); - Flush(); + Invalidate(); + Window()->UpdateIfNeeded(); } } }