]> git.cworth.org Git - acre/commit
Use cairo_clip to trim out any out-of-view data
authorCarl Worth <cworth@cworth.org>
Thu, 7 Nov 2013 03:30:28 +0000 (19:30 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 7 Nov 2013 03:30:28 +0000 (19:30 -0800)
commitafcbeb2a796dca2bc889014dbb589b4f7bceb3ea
tree9dc7ded49bf883d536de11e2fa947497929b6db8
parent803fba5eca929a4e0cb541223182eae86a96f9bb
Use cairo_clip to trim out any out-of-view data

Previously, we were simply not drawing line segments where one
endpoint of the segment was outside the bounds of the chart. This had
the problem of omitting a (potentially large) portion of the line
segment that should be visible.

We get the correct result, and more easily, by simply calling
cairo_clip.
acre.c