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
This commit is contained in:
parent
65abd9dff0
commit
19f441e575
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user