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:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user