diff gui/win32/widgetrender.c @ 33615:1f9a31d4f114

Replace all playback integer constants by their symbolic constants.
author ib
date Wed, 22 Jun 2011 12:53:30 +0000
parents 7dd27b046712
children f3300b0c38a9
line wrap: on
line diff
--- a/gui/win32/widgetrender.c	Wed Jun 22 12:12:50 2011 +0000
+++ b/gui/win32/widgetrender.c	Wed Jun 22 12:53:30 2011 +0000
@@ -151,9 +151,9 @@
 
     if(!strcmp(text, "$p") || !strcmp(text, "$s") || !strcmp(text, "$e"))
     {
-        if(guiInfo.Playing == 0) stringreplace(text, NULL, "s");
-        else if(guiInfo.Playing == 1) stringreplace(text, NULL, "p");
-        else if(guiInfo.Playing == 2) stringreplace(text, NULL, "e");
+        if(guiInfo.Playing == GUI_STOP) stringreplace(text, NULL, "s");
+        else if(guiInfo.Playing == GUI_PLAY) stringreplace(text, NULL, "p");
+        else if(guiInfo.Playing == GUI_PAUSE) stringreplace(text, NULL, "e");
     }
 
     if(guiInfo.AudioType == 0) stringreplace(text, "$a", "n");