[BUG][FIX] Balloon: bad segment count for bezier shapes

Duane Maxwell dmaxwell at entrypoint.com
Mon Oct 4 20:28:04 UTC 1999


When fed a bezier shape, Balloon incorrectly uses the point count, rather
than groups of three points, to be the count of bezier segments.

Fix follows:

BalloonEngine>>drawBezierShape: points fill: fillStyle borderWidth:
borderWidth borderColor: borderFill transform: aTransform
	| fills |
	self edgeTransform: aTransform.
	self resetIfNeeded.
	fills _ self registerFill: fillStyle and: borderFill.
	self primAddBezierShape: points
		segments: points size // 3
		fill: (fills at: 1)
		lineWidth: borderWidth
		lineFill: (fills at: 2).
	self postFlushIfNeeded.





More information about the Squeak-dev mailing list