Index: /trunk/MagicSoft/Mars/mhist/MHCamera.cc
===================================================================
--- /trunk/MagicSoft/Mars/mhist/MHCamera.cc	(revision 3512)
+++ /trunk/MagicSoft/Mars/mhist/MHCamera.cc	(revision 3513)
@@ -633,5 +633,5 @@
     for (Int_t i=0; i<fNcells-2; i++)
     {
-        hex.SetFillStyle(issame ? 4000 : 1001);
+        hex.SetFillStyle(issame ? 0 : 1001);
 
         if (!issame)
@@ -1249,6 +1249,4 @@
         return 999999;
 
-    const Int_t kMaxDiff = 7;
-
     TPaveStats *box = (TPaveStats*)gPad->GetPrimitive("stats");
     if (box)
@@ -1264,10 +1262,6 @@
         return TH1D::DistancetoPrimitive(px, py);
 
-    for (Int_t i=0; i<fNcells-2; i++)
-    {
-        MHexagon hex((*fGeomCam)[i]);
-        if (hex.DistancetoPrimitive(px, py)==0)
-            return 0;
-    }
+    if (GetPixelIndex(px, py)>=0)
+        return 0;
 
     if (!box)
@@ -1275,5 +1269,5 @@
 
     const Int_t dist = box->DistancetoPrimitive(px, py);
-    if (dist > kMaxDiff)
+    if (dist > TPad::GetMaxPickDistance())
         return 999999;
 
