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:
Ingo Weinhold
2009-05-01 20:59:17 +00:00
parent 02b4901e4c
commit e062a32ba9
+2 -2
View File
@@ -223,11 +223,11 @@ printf("Chart::Draw((%f, %f) - (%f, %f))\n", updateRect.left, updateRect.top, up
// clear the axes background
if (fLeftAxis.axis != NULL || fTopAxis.axis != NULL
|| fRightAxis.axis != NULL || fBottomAxis.axis != NULL) {
SetHighColor(background);
SetLowColor(background);
BRegion clippingRegion(Bounds());
clippingRegion.Exclude(fChartFrame);
ConstrainClippingRegion(&clippingRegion);
FillRect(Bounds());
FillRect(Bounds(), B_SOLID_LOW);
ConstrainClippingRegion(NULL);
}