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
This commit is contained in:
Stephan Aßmus
2006-05-22 09:55:39 +00:00
parent bc685a6444
commit a0c5ca01a5
+6 -6
View File
@@ -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();
}
}
}