Index: /branches/eam_branches/20090715/Ohana/src/kapa2/src/PaintOverlay.c
===================================================================
--- /branches/eam_branches/20090715/Ohana/src/kapa2/src/PaintOverlay.c	(revision 25276)
+++ /branches/eam_branches/20090715/Ohana/src/kapa2/src/PaintOverlay.c	(revision 25277)
@@ -77,6 +77,6 @@
 	  # 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;
