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();
|
BRect bounds = Bounds();
|
||||||
uint32 buttons;
|
uint32 buttons;
|
||||||
|
|
||||||
Draw(Bounds());
|
Invalidate();
|
||||||
Flush();
|
Window()->UpdateIfNeeded();
|
||||||
|
|
||||||
do {
|
do {
|
||||||
snooze(40000);
|
snooze(40000);
|
||||||
@@ -245,8 +245,8 @@ BCheckBox::MouseDown(BPoint point)
|
|||||||
|
|
||||||
if (fOutlined != inside) {
|
if (fOutlined != inside) {
|
||||||
fOutlined = inside;
|
fOutlined = inside;
|
||||||
Draw(Bounds());
|
Invalidate();
|
||||||
Flush();
|
Window()->UpdateIfNeeded();
|
||||||
}
|
}
|
||||||
} while (buttons != 0);
|
} while (buttons != 0);
|
||||||
|
|
||||||
@@ -255,8 +255,8 @@ BCheckBox::MouseDown(BPoint point)
|
|||||||
SetValue(!Value());
|
SetValue(!Value());
|
||||||
Invoke();
|
Invoke();
|
||||||
} else {
|
} else {
|
||||||
Draw(Bounds());
|
Invalidate();
|
||||||
Flush();
|
Window()->UpdateIfNeeded();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user