You're right, but your patch is missing :)
 
Oops sorry!  Try this.
 
Mark
diff -ru 
original-trees/++DFB-2005-05-18-15-15-00-UTC/++dfb/idirectfbeventbuffer.cpp 
++DFB/++dfb/idirectfbeventbuffer.cpp
--- original-trees/++DFB-2005-05-18-15-15-00-UTC/++dfb/idirectfbeventbuffer.cpp 
2004-08-17 19:50:07.000000000 +0100
+++ ++DFB/++dfb/idirectfbeventbuffer.cpp        2005-09-14 14:41:23.000000000 
+0100
@@ -35,10 +35,17 @@
      DFBCHECK( iface->WaitForEvent (iface) );
 }
 
-void IDirectFBEventBuffer::WaitForEventWithTimeout (unsigned int seconds,
+bool IDirectFBEventBuffer::WaitForEventWithTimeout (unsigned int seconds,
                                                     unsigned int milli_seconds)
 {
-     DFBCHECK( iface->WaitForEventWithTimeout (iface, seconds, milli_seconds) 
);
+     DFBResult ret;
+
+     ret = iface->WaitForEventWithTimeout (iface, seconds, milli_seconds);
+
+     if (ret != DFB_OK  &&  ret != DFB_TIMEOUT)
+          throw new DFBException(__PRETTY_FUNCTION__, ret);
+
+     return (ret == DFB_OK);
 }
 
 void IDirectFBEventBuffer::WakeUp ()
diff -ru 
original-trees/++DFB-2005-05-18-15-15-00-UTC/include/idirectfbeventbuffer.h 
++DFB/include/idirectfbeventbuffer.h
--- original-trees/++DFB-2005-05-18-15-15-00-UTC/include/idirectfbeventbuffer.h 
2004-08-17 19:50:07.000000000 +0100
+++ ++DFB/include/idirectfbeventbuffer.h        2005-09-14 14:43:22.000000000 
+0100
@@ -41,7 +41,7 @@
      void                  Reset                    ();
 
      void                  WaitForEvent             ();
-     void                  WaitForEventWithTimeout  (unsigned int  seconds,
+     bool                  WaitForEventWithTimeout  (unsigned int  seconds,
                                                      unsigned int  
milli_seconds);
 
      void                  WakeUp                   ();
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to