* Prevent cross from being too close to the surroundings.

* No need for B_OP_OVER anymore since ages.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24075 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2008-02-23 11:52:53 +00:00
parent 9640a42e77
commit ab7c45e727
+2 -8
View File
@@ -154,18 +154,15 @@ BCheckBox::Draw(BRect updateRect)
// Checkmark
if (Value() == B_CONTROL_ON) {
rect.InsetBy(2, 2);
rect.InsetBy(3, 3);
SetHighColor(ui_color(B_KEYBOARD_NAVIGATION_COLOR));
SetPenSize(2);
SetDrawingMode(B_OP_OVER);
// needed because of anti-aliasing
StrokeLine(BPoint(rect.left, rect.top),
BPoint(rect.right, rect.bottom));
StrokeLine(BPoint(rect.left, rect.bottom),
BPoint(rect.right, rect.top));
SetPenSize(1);
SetDrawingMode(B_OP_COPY);
}
// Label
@@ -207,19 +204,16 @@ BCheckBox::Draw(BRect updateRect)
// Checkmark
if (Value() == B_CONTROL_ON) {
rect.InsetBy(2, 2);
rect.InsetBy(3, 3);
SetHighColor(tint_color(ui_color(B_KEYBOARD_NAVIGATION_COLOR),
B_DISABLED_MARK_TINT));
SetPenSize(2);
SetDrawingMode(B_OP_OVER);
// needed because of anti-aliasing
StrokeLine(BPoint(rect.left, rect.top),
BPoint(rect.right, rect.bottom));
StrokeLine(BPoint(rect.left, rect.bottom),
BPoint(rect.right, rect.top));
SetPenSize(1);
SetDrawingMode(B_OP_COPY);
}
// Label