Index: /branches/eam_branches/20090715/Ohana/src/kapa2/src/PaintOverlay.c
===================================================================
--- /branches/eam_branches/20090715/Ohana/src/kapa2/src/PaintOverlay.c	(revision 25293)
+++ /branches/eam_branches/20090715/Ohana/src/kapa2/src/PaintOverlay.c	(revision 25294)
@@ -9,5 +9,5 @@
  
   XSetForeground (graphic[0].display, graphic[0].gc, image[0].overlay[N].color);
-  XSetLineAttributes (graphic->display, graphic->gc, 2, LineSolid, CapNotLast, JoinMiter);
+  XSetLineAttributes (graphic->display, graphic->gc, 1, LineSolid, CapNotLast, JoinMiter);
   
   expand = 1.0;
@@ -72,11 +72,11 @@
 	  double sn = sin(angle);
 	  x0 = X + pX*dx*cs;
-	  y0 = Y - pY*dx*sn;
+	  y0 = Y + pY*dx*sn;
 	  // XXX dt should be based on the size of the ellipse...
 	  // 0.10 -> 60 segments on the ellipse
 	  # define DT 0.1
 	  for (t = DT; t < 2*M_PI + DT; t+=DT) {
-	    x1 = X + pX*dx*cos(t)*cs + pX*dy*sin(t)*sn;
-	    y1 = Y - pY*dx*cos(t)*sn + pY*dy*sin(t)*cs;
+	    x1 = X + pX*dx*cos(t)*cs - pX*dy*sin(t)*sn;
+	    y1 = Y + pY*dx*cos(t)*sn + pY*dy*sin(t)*cs;
 	    XDrawLine (graphic[0].display, graphic[0].window, graphic[0].gc, x0, y0, x1, y1);
 	    x0 = x1;
