Skip to content

Commit

Permalink
make sure the grid lines in chartview are never blurry.
Browse files Browse the repository at this point in the history
  • Loading branch information
luddep committed Apr 12, 2010
1 parent 6486189 commit 507f8e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion LPChartView.j
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ var labelViewHeight = 20,

- (void)setDrawView:(id)aDrawView
{
if (aDrawView === drawView)
return;

if (!drawView)
[self addSubview:aDrawView positioned:CPWindowAbove relativeTo:gridView];
else
Expand Down Expand Up @@ -370,7 +373,7 @@ var LPChartViewDataSourceKey = @"LPChartViewDataSourceKey",
// Vertical lines
for (var i = 0; i < itemFrames[0].length; i++)
{
CGContextFillRect(context, CGRectMake(itemFrames[0][i].origin.x, 0, lineWidth, height));
CGContextFillRect(context, CGRectMake(FLOOR(itemFrames[0][i].origin.x), 0, lineWidth, height));
}

// Right most line
Expand Down

0 comments on commit 507f8e6

Please sign in to comment.