From 19f441e57543994eadbd3a2870b5b21bbdcc182a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Fri, 5 May 2006 09:04:14 +0000 Subject: [PATCH] the drawing code was optimized for bugs in Painter, no longer necessary git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17330 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/RadioButton.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/kits/interface/RadioButton.cpp b/src/kits/interface/RadioButton.cpp index 486c7ed31c..906e0d7a11 100644 --- a/src/kits/interface/RadioButton.cpp +++ b/src/kits/interface/RadioButton.cpp @@ -129,10 +129,6 @@ BRadioButton::Draw(BRect updateRect) knobLight = tint_color(naviColor, (B_LIGHTEN_2_TINT + B_LIGHTEN_MAX_TINT) / 2.0); } - // NOTE: this improves drawing a lot because of - // anti-aliased circles and arcs in Haiku - SetDrawingMode(B_OP_OVER); - // dot if (Value() == B_CONTROL_ON) { // full @@ -140,10 +136,10 @@ BRadioButton::Draw(BRect updateRect) FillEllipse(rect); SetHighColor(knob); - FillEllipse(BRect(rect.left + 2, rect.top + 2, rect.right - 2, rect.bottom - 2)); + FillEllipse(BRect(rect.left + 2, rect.top + 2, rect.right - 3, rect.bottom - 3)); SetHighColor(knobLight); - FillEllipse(BRect(rect.left + 3, rect.top + 3, rect.right - 4, rect.bottom - 4)); + FillEllipse(BRect(rect.left + 3, rect.top + 3, rect.right - 5, rect.bottom - 5)); } else { // empty SetHighColor(lightenmax);