diff gui/interface.c @ 36294:a73127c786e8

Remove GUI_HANDLE_EVENTS. This call is only needed after a GUI_REDRAW, so add its code to GUI_REDRAW and simplify the GUI interface.
author ib
date Thu, 01 Aug 2013 17:45:31 +0000
parents c74ca4ce7103
children 28ea255e40ce
line wrap: on
line diff
--- a/gui/interface.c	Thu Aug 01 17:36:21 2013 +0000
+++ b/gui/interface.c	Thu Aug 01 17:45:31 2013 +0000
@@ -332,7 +332,9 @@
         uiState();
         break;
 
-    case GUI_HANDLE_EVENTS:
+    case GUI_REDRAW:
+
+        uiEvent(ivRedraw, 0);
 
         if (!guiInfo.Playing || !guiInfo.VideoWindow)
             wsEvents();
@@ -735,11 +737,6 @@
 
         break;
 
-    case GUI_REDRAW:
-
-        uiEvent(ivRedraw, 0);
-        break;
-
     case GUI_SETUP_VIDEO_WINDOW:
 
         guiInfo.VideoWidth  = vo_dwidth;