Commits

Anonymous committed ca48dc7

small filled ellipse fix

  • Participants
  • Parent commits bc5028f

Comments (0)

Files changed (2)

 # BREAK = change breaks existing code
 # BUG	= fixed a bug that was (or could have been) crashing
 
+October 22, 2001
+	small fix for filled ellipses/circles
+
 September 27, 2001
 	drawing filled circles returns bounding rect
 	ellipses and circles drawn inside given area
 		iy = rx * 64;
 		
 		do {
-			h = (ix + 16/*32*/) >> 6;
-			i = (iy + 16/*32*/) >> 6;
+			h = (ix + 4/*32*/) >> 6;
+			i = (iy + 4/*32*/) >> 6;
 			j = (h * ry) / rx;
 			k = (i * ry) / rx;
 			if ((ok!=k) && (oj!=k)) {
 				oi=i;
 			}
 			if ((oh!=h) && (oi!=h) && (i!=h)) {
-				drawhorzlineclip(dst, color, x+k, y+h, x+k-1);
-				drawhorzlineclip(dst, color, x+k, y-h-1, x+k-1);
+				drawhorzlineclip(dst, color, x-k, y+h, x+k-1);
+				drawhorzlineclip(dst, color, x-k, y-h-1, x+k-1);
 				oh=h;
 			}