diff gui/win32/interface.c @ 33614:79743a5cf4f0

Rename the symbolic playback state constants. They should not be confused with the guiGetEvent types. Upper case charcaters shall reflect that they are (integer) constants. Additionally, adjust their casts.
author ib
date Wed, 22 Jun 2011 12:12:50 +0000
parents 6aa251adfba0
children 1f9a31d4f114
line wrap: on
line diff
--- a/gui/win32/interface.c	Wed Jun 22 12:09:01 2011 +0000
+++ b/gui/win32/interface.c	Wed Jun 22 12:12:50 2011 +0000
@@ -218,7 +218,7 @@
         }
         case evStop:
             if(guiInfo.Playing)
-                guiGetEvent(guiSetState, (void *) guiSetStop);
+                guiGetEvent(guiSetState, (void *) GUI_STOP);
             break;
         case evSetMoviePosition:
         {
@@ -288,7 +288,7 @@
                     guiInfo.Chapter = guiInfo.DVD.current_chapter;
                     guiInfo.Angle = guiInfo.DVD.current_angle;
                     guiInfo.DiskChanged = 1;
-                    guiGetEvent(guiSetState, (void *) guiSetPlay);
+                    guiGetEvent(guiSetState, (void *) GUI_PLAY);
                     break;
                 }
 #endif
@@ -297,8 +297,8 @@
                     guiInfo.FilenameChanged = guiInfo.NewPlay = 1;
                     update_playlistwindow();
                     uiGotoTheNext = guiInfo.Playing? 0 : 1;
-                    guiGetEvent(guiSetState, (void *) guiSetStop);
-                    guiGetEvent(guiSetState, (void *) guiSetPlay);
+                    guiGetEvent(guiSetState, (void *) GUI_STOP);
+                    guiGetEvent(guiSetState, (void *) GUI_PLAY);
                     break;
                }
            }
@@ -324,7 +324,7 @@
        return;
    }
    guiInfo.NewPlay = 1;
-   guiGetEvent(guiSetState, (void *) guiSetPlay);
+   guiGetEvent(guiSetState, (void *) GUI_PLAY);
 }
 
 void uiPause( void )
@@ -428,12 +428,12 @@
         style = WS_OVERLAPPEDWINDOW | WS_SIZEBOX;
         SetWindowLong(mygui->subwindow, GWL_STYLE, style);
     }
-    guiGetEvent(guiSetState, (void *) guiSetStop);
+    guiGetEvent(guiSetState, (void *) GUI_STOP);
 }
 
 void uiStop(void)
 {
-    guiGetEvent(guiSetState, (void *) guiSetStop);
+    guiGetEvent(guiSetState, (void *) GUI_STOP);
 }
 
 void uiSetFileName(char *dir, char *name, int type)
@@ -665,12 +665,12 @@
             guiInfo.Playing = (int) arg;
             switch (guiInfo.Playing)
             {
-                case guiSetPlay:
+                case GUI_PLAY:
                 {
                     guiInfo.Playing = 1;
                     break;
                 }
-                case guiSetStop:
+                case GUI_STOP:
                 {
                     guiInfo.Playing = 0;
                     if(movie_aspect >= 0)
@@ -678,7 +678,7 @@
                     update_subwindow();
                     break;
                 }
-                case guiSetPause:
+                case GUI_PAUSE:
                     guiInfo.Playing = 2;
                     break;
             }