Index: trunk/MagicSoft/AMC/activemirrorcontrol/activemirrorcontrol/videoframe.cpp
===================================================================
--- trunk/MagicSoft/AMC/activemirrorcontrol/activemirrorcontrol/videoframe.cpp	(revision 4506)
+++ trunk/MagicSoft/AMC/activemirrorcontrol/activemirrorcontrol/videoframe.cpp	(revision 4507)
@@ -125,5 +125,5 @@
 	windowPainter->drawEllipse( LED4_X-4, LED4_Y-4, 9, 9);
 
-	// Draw the calibration pointa and the regression fits.
+	// Draw the calibration points and the regression fits.
 	if( m_pCalibDlg != 0 )
 	{
@@ -183,4 +183,5 @@
 	if( m_dRefX > 0)
 	{
+		// Draw a green rectangle showing the reference point for this panel
 		windowPainter->setPen( Qt::green );
 		if( m_dCenterX > 1.0 )
@@ -193,4 +194,20 @@
 		} else
 			windowPainter->drawRect( m_dRefX-4., m_dRefY-4., 9., 9. );
+	}
+
+	// Draw a cyan rectangle showing the corrected reference point for this panel
+	if( m_dRef1X > 0)
+	{
+		windowPainter->setPen( Qt::cyan );
+		if( m_dCenterX > 1.0 )
+		{
+			// Adapt spot for shift of camera center.
+			double dDx, dDy;
+			dDx = m_dCenterX - CAMERA_X;
+			dDy = m_dCenterY - CAMERA_Y;
+			windowPainter->drawRect( m_dRef1X+dDx-4., m_dRef1Y+dDy-4., 9., 9. );
+		} else
+			windowPainter->drawRect( m_dRef1X-4., m_dRef1Y-4., 9., 9. );
+
 	}
 
Index: trunk/MagicSoft/AMC/activemirrorcontrol/activemirrorcontrol/videoframe.h
===================================================================
--- trunk/MagicSoft/AMC/activemirrorcontrol/activemirrorcontrol/videoframe.h	(revision 4506)
+++ trunk/MagicSoft/AMC/activemirrorcontrol/activemirrorcontrol/videoframe.h	(revision 4507)
@@ -51,4 +51,6 @@
   /** Set the reference position */
   void setRef( double p_dX, double p_dY ) { m_dRefX = p_dX; m_dRefY = p_dY; };
+  /** Set the corrected reference position */
+  void setCorrRef( double p_dX, double p_dY ) { m_dRef1X = p_dX; m_dRef1Y = p_dY; };
   /** Set list of spots used to calibrate panel movement */
   void setCalibDlg( CalibratePanelDialog* p_pDlg ) { m_pCalibDlg = p_pDlg; };
@@ -104,4 +106,8 @@
   double m_dRefY;
   /**  */
+  double m_dRef1X;
+  /**  */
+  double m_dRef1Y;
+  /**  */
   double m_dCenterX;
   /**  */
