Index: trunk/MagicSoft/Cosy/main/MStarguider.cc
===================================================================
--- trunk/MagicSoft/Cosy/main/MStarguider.cc	(revision 7773)
+++ trunk/MagicSoft/Cosy/main/MStarguider.cc	(revision 7774)
@@ -1982,17 +1982,22 @@
         // 53.2 and 293.6 are the "preliminary" camera center
         // -9 and 28.5 are the offsets of the pointing position in the sky
-        Ring skycenter(0, 0);
 
         const Bool_t centerisvalid = sgcenter.GetX()>0 && sgcenter.GetY()>0;
-        if (centerisvalid)
-            skycenter.SetXY(sgcenter.GetX() -  53.2,
-                            sgcenter.GetY() - 293.6);
+//        if (centerisvalid)
+//            skycenter.SetXY(sgcenter.GetX() -  53.2,
+//                            sgcenter.GetY() - 293.6);
 
     	// we obtain stars in the effective star FOV and draw them.
     	// coordinates are video frame coords.
 	// We determine the ideal starfield using camera sagging info
-	// from the LEDs
-        fSao->CalcStars(stars, 530, 292, skycenter.GetX()-9, skycenter.GetY()+28.5);
+        // from the LEDs
+        const XY off(sgcenter.GetX()- 53.2-9,
+                     sgcenter.GetY()-293.6+28.5);
+
+        fSao->CalcStars(stars, 530, 292, off.X(), off.Y());
 	fSao->DrawStars(stars, cimg);
+
+        // Position around which the circles are drawn.
+        const Ring skycenter(768/2+off.X(), 576/2+off.Y());
 
 	// There are two corrections to the misspointing
