Index: trunk/MagicSoft/Cosy/main/MStarguider.cc
===================================================================
--- trunk/MagicSoft/Cosy/main/MStarguider.cc	(revision 7768)
+++ trunk/MagicSoft/Cosy/main/MStarguider.cc	(revision 7769)
@@ -1957,5 +1957,4 @@
     // Position corresponding to the camera center (53.2, 293.6)
     //Ring skycenter(392, 318);
-    Ring skycenter(768/2, 576/2);
     // MStarList spots;
 
@@ -1983,10 +1982,10 @@
         // 53.2 and 293.6 are the "preliminary" camera center
         // -9 and 28.5 are the offsets of the pointing position in the sky
-        const XY offset(53.2+9, 293.6-28.5);
+        Ring skycenter(0, 0);
 
         const Bool_t centerisvalid = sgcenter.GetX()>0 && sgcenter.GetY()>0;
         if (centerisvalid)
-            skycenter.SetXY(sgcenter.GetX() - offset.X(),
-                            sgcenter.GetY() - offset.Y());
+            skycenter.SetXY(sgcenter.GetX() -  53.2,
+                            sgcenter.GetY() - 293.6);
 
     	// we obtain stars in the effective star FOV and draw them.
@@ -1994,5 +1993,5 @@
 	// We determine the ideal starfield using camera sagging info
 	// from the LEDs
-        fSao->CalcStars(stars, 530, 292, skycenter.GetX(), skycenter.GetY());
+        fSao->CalcStars(stars, 530, 292, skycenter.GetX()-9, skycenter.GetY()+28.5);
 	fSao->DrawStars(stars, cimg);
 
