Index: /trunk/FACT++/gui/BasicGlCamera.h
===================================================================
--- /trunk/FACT++/gui/BasicGlCamera.h	(revision 12299)
+++ /trunk/FACT++/gui/BasicGlCamera.h	(revision 12300)
@@ -61,4 +61,5 @@
 
     static PixelMap fPixelMap;
+    static int pixelsPatch[NPIX];
 
     bool pixelColorUpToDate;
@@ -140,5 +141,4 @@
     static std::vector<edge> patchesIndices[160];
     static int verticesIndices[NPIX][6];
-    static int pixelsPatch[NPIX];
     static int softwareMapping[NPIX];
     float shownSizex;
Index: /trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc
===================================================================
--- /trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc	(revision 12299)
+++ /trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc	(revision 12300)
@@ -638,4 +638,12 @@
     catch (const runtime_error&)
     {
+        try
+        {
+            inputFile->SetPtrAddress("PCTime", pcTime);
+        }
+        catch (const runtime_error&)
+        {
+
+        }
     }
 
@@ -1103,5 +1111,13 @@
     updateGL();
 }
-
+void RawDataViewer::setCurrentPixel(int pix)
+{
+    if (pix == -1)
+        return;
+    selectedPixel = pix;
+    if (isVisible())
+    updateGL();
+     emit signalCurrentPixel(pix);
+}
 void RawDataViewer::computePulsesStatistics()
 {
@@ -1202,4 +1218,5 @@
 
     GLWindow_2->enableText(false);
+ //   GLWindow_2->ShowPatchCursor(true);
 
     QObject::connect(GLWindow, SIGNAL(colorPaletteHasChanged()),
@@ -1213,4 +1230,8 @@
     QObject::connect(GLWindow, SIGNAL(newFileLoaded()),
                      this, SLOT(newFileLoaded()));
+
+    QObject::connect(GLWindow_2, SIGNAL(signalCurrentPixel(int)),
+                     GLWindow, SLOT(setCurrentPixel(int)));
+
 
     show();
@@ -1981,4 +2002,8 @@
 void UIConnector::pixelChanged(int pixel)
 {
+    GLWindow_2->fWhite = pixel;
+    GLWindow_2->fWhitePatch = GLWindow_2->pixelsPatch[pixel];
+
+
     pixel = GLWindow->hardwareMapping[pixel];
 
Index: /trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.h
===================================================================
--- /trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.h	(revision 12299)
+++ /trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.h	(revision 12300)
@@ -75,4 +75,5 @@
     void nextSlice();
     void previousSlice();
+    void setCurrentPixel(int);
 
 Q_SIGNALS:
