replaced direct calling of Draw() with Invalidate() where appropriate
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12563 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -234,16 +234,18 @@ BCheckBox::MouseDown(BPoint point)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
fOutlined = true;
|
fOutlined = true;
|
||||||
Draw(Bounds());
|
|
||||||
Flush();
|
|
||||||
|
|
||||||
if (Window()->Flags() & B_ASYNCHRONOUS_CONTROLS) {
|
if (Window()->Flags() & B_ASYNCHRONOUS_CONTROLS) {
|
||||||
|
Invalidate();
|
||||||
SetTracking(true);
|
SetTracking(true);
|
||||||
SetMouseEventMask(B_POINTER_EVENTS, B_LOCK_WINDOW_FOCUS);
|
SetMouseEventMask(B_POINTER_EVENTS, B_LOCK_WINDOW_FOCUS);
|
||||||
} else {
|
} else {
|
||||||
BRect bounds = Bounds();
|
BRect bounds = Bounds();
|
||||||
uint32 buttons;
|
uint32 buttons;
|
||||||
|
|
||||||
|
Draw(Bounds());
|
||||||
|
Flush();
|
||||||
|
|
||||||
do {
|
do {
|
||||||
snooze(40000);
|
snooze(40000);
|
||||||
|
|
||||||
@@ -301,8 +303,7 @@ BCheckBox::MouseUp(BPoint point)
|
|||||||
|
|
||||||
if (fOutlined != inside) {
|
if (fOutlined != inside) {
|
||||||
fOutlined = inside;
|
fOutlined = inside;
|
||||||
Draw(Bounds());
|
Invalidate();
|
||||||
Flush();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fOutlined) {
|
if (fOutlined) {
|
||||||
@@ -310,8 +311,7 @@ BCheckBox::MouseUp(BPoint point)
|
|||||||
SetValue(!Value());
|
SetValue(!Value());
|
||||||
Invoke();
|
Invoke();
|
||||||
} else {
|
} else {
|
||||||
Draw(Bounds());
|
Invalidate();
|
||||||
Flush();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SetTracking(false);
|
SetTracking(false);
|
||||||
@@ -329,8 +329,7 @@ BCheckBox::MouseMoved(BPoint point, uint32 transit,
|
|||||||
|
|
||||||
if (fOutlined != inside) {
|
if (fOutlined != inside) {
|
||||||
fOutlined = inside;
|
fOutlined = inside;
|
||||||
Draw(Bounds());
|
Invalidate();
|
||||||
Flush();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user