From ab7c45e72730e0eb299e914a68e1bdcf2178fb5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 23 Feb 2008 11:52:53 +0000 Subject: [PATCH] * 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 --- src/kits/interface/CheckBox.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/kits/interface/CheckBox.cpp b/src/kits/interface/CheckBox.cpp index 3294f5b3df..20efa5cdcd 100644 --- a/src/kits/interface/CheckBox.cpp +++ b/src/kits/interface/CheckBox.cpp @@ -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