Index: trunk/MagicSoft/Mars/mgui/MCamDisplay.cc
===================================================================
--- trunk/MagicSoft/Mars/mgui/MCamDisplay.cc	(revision 1965)
+++ trunk/MagicSoft/Mars/mgui/MCamDisplay.cc	(revision 1966)
@@ -278,23 +278,5 @@
     pad->SetFillColor(16);
 
-    //
-    // All this is necessary to get the background in the correct color
-    //
-    pad->Divide(1,1);
-    pad->cd(1);
-
-    gPad->SetBorderMode(0);
-    gPad->SetFillColor(16);
-
-    //
-    // set the color palette for the TBox elements
-    //
     AppendPad("");
-
-    //
-    // Necessary to visualize the background color (FIXME?)
-    //
-    gPad->Modified();
-    gPad->Update();
 }
 
@@ -309,4 +291,6 @@
     const float w = gPad->GetWw();
     const float h = gPad->GetWh()*ratio;
+
+    gPad->Range(-fRange, -fRange, (2*ratio-1)*fRange, fRange);
 
     if (h<w)
@@ -314,6 +298,4 @@
     else
         gPad->SetPad(0, (1.-w/h)/2, 1, (w/h+1)/2);
-
-    gPad->Range(-fRange, -fRange, (2*ratio-1)*fRange, fRange);
 }
 
@@ -741,5 +723,5 @@
 
         TText &txt = *GetText(i);
-        txt.SetText(txt.GetX(), txt.GetY(), Form("%5.1f", val));
+        txt.SetText(txt.GetX(), txt.GetY(), Form(val<1e6?"%5.1f":"%5.1e", val));
     }
 }
