[MPlayer-cvslog] r34045 - trunk/gui/ui/actions.c

ib subversion at mplayerhq.hu
Thu Sep 1 20:52:09 CEST 2011


Author: ib
Date: Thu Sep  1 20:52:09 2011
New Revision: 34045

Log:
Rephrase condition for btnModify().

Don't rely on the values of btnPressed or btnReleased.

Modified:
   trunk/gui/ui/actions.c

Modified: trunk/gui/ui/actions.c
==============================================================================
--- trunk/gui/ui/actions.c	Thu Sep  1 20:41:36 2011	(r34044)
+++ trunk/gui/ui/actions.c	Thu Sep  1 20:52:09 2011	(r34045)
@@ -246,7 +246,7 @@ void uiChangeSkin(char *name)
     btnModify(evSetVolume, guiInfo.Volume);
     btnModify(evSetBalance, guiInfo.Balance);
     btnModify(evSetMoviePosition, guiInfo.Position);
-    btnModify(evFullScreen, !guiApp.subWindow.isFullScreen);
+    btnModify(evFullScreen, guiApp.subWindow.isFullScreen ? btnPressed : btnReleased);
 
     wsSetLayer(wsDisplay, guiApp.mainWindow.WindowID, guiApp.subWindow.isFullScreen);
     wsSetLayer(wsDisplay, guiApp.menuWindow.WindowID, guiApp.subWindow.isFullScreen);


More information about the MPlayer-cvslog mailing list