Mercurial > mplayer.hg
changeset 33957:349e1fc4b6f2
Rephrase condition for btnModify().
Don't rely on the values of btnPressed or btnReleased.
author | ib |
---|---|
date | Thu, 01 Sep 2011 18:52:09 +0000 |
parents | bfc87befa99f |
children | b4593947fc31 |
files | gui/ui/actions.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/ui/actions.c Thu Sep 01 18:41:36 2011 +0000 +++ b/gui/ui/actions.c Thu Sep 01 18:52:09 2011 +0000 @@ -246,7 +246,7 @@ 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);