When there's an axis set the low color to the panel background. This causes the
axis legends to be antialiased against the right color. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30542 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -223,11 +223,11 @@ printf("Chart::Draw((%f, %f) - (%f, %f))\n", updateRect.left, updateRect.top, up
|
|||||||
// clear the axes background
|
// clear the axes background
|
||||||
if (fLeftAxis.axis != NULL || fTopAxis.axis != NULL
|
if (fLeftAxis.axis != NULL || fTopAxis.axis != NULL
|
||||||
|| fRightAxis.axis != NULL || fBottomAxis.axis != NULL) {
|
|| fRightAxis.axis != NULL || fBottomAxis.axis != NULL) {
|
||||||
SetHighColor(background);
|
SetLowColor(background);
|
||||||
BRegion clippingRegion(Bounds());
|
BRegion clippingRegion(Bounds());
|
||||||
clippingRegion.Exclude(fChartFrame);
|
clippingRegion.Exclude(fChartFrame);
|
||||||
ConstrainClippingRegion(&clippingRegion);
|
ConstrainClippingRegion(&clippingRegion);
|
||||||
FillRect(Bounds());
|
FillRect(Bounds(), B_SOLID_LOW);
|
||||||
ConstrainClippingRegion(NULL);
|
ConstrainClippingRegion(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user