FACT++  1.0
void MGImage::DoRedraw ( )

Definition at line 74 of file MGImage.cc.

References fDefGC, fHeight, fId, fImage, fMuxPixmap, fWidth, kNeedRedraw, and kSyncMode.

75 {
76  if (TestBit(kSyncMode))
77  while (fMuxPixmap->Lock()==13)
78  usleep(1);
79 
80  // gVirtualX->DrawLine(fId, fDefGC, 0, 0, fWidth+2, 0);
81  // gVirtualX->DrawLine(fId, fDefGC, 0, 0, 0, fHeight+2);
82  // gVirtualX->DrawLine(fId, fDefGC, fWidth+2, 0, fWidth+2, fHeight+2);
83  // gVirtualX->DrawLine(fId, fDefGC, 0, fHeight+2, fWidth+2, fHeight+2);
84 
85  // if (TestBit(kNeedRedraw))
86  {
87  gVirtualX->PutImage(fId, fDefGC, (Drawable_t)fImage, 0, 0, 0, 0,
88  fWidth, fHeight);
89  ResetBit(kNeedRedraw);
90  }
91 
92  if (TestBit(kSyncMode))
93  if (fMuxPixmap->UnLock()==13)
94  cout << "MGImage::DoRedraw - tried to unlock mutex locked by other thread." << endl;
95 }
TMutex * fMuxPixmap
Definition: MGImage.h:31
UInt_t fHeight
Definition: MGImage.h:29
XImage * fImage
Definition: MGImage.h:23
UInt_t fWidth
Definition: MGImage.h:28
uint16_t fId
Definition: HeadersFAD.h:93
GContext_t fDefGC
Definition: MGImage.h:25