changeset 35686:e56df184e118

Don't set "normal size" check mark in menu by default. The "Normal size" item in the menu is currently marked by default if the video is neither double nor half size, and even if the video window size isn't the exact video size. To avoid confusion, only set the check mark, if window and video are the same size, and mark nothing if not. Based on a patch by Hans-Dieter Kosch, hdkosch kabelbw de.
author ib
date Fri, 18 Jan 2013 17:09:03 +0000
parents e9ca16ecb106
children 6996700b8d1f
files gui/dialog/menu.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/menu.c	Fri Jan 18 09:50:30 2013 +0000
+++ b/gui/dialog/menu.c	Fri Jan 18 17:09:03 2013 +0000
@@ -654,7 +654,7 @@
            ( guiApp.videoWindow.Height == guiInfo.VideoHeight * 2 ) ) b2=True;
       else if ( ( guiApp.videoWindow.Width == guiInfo.VideoWidth / 2 ) &&
                 ( guiApp.videoWindow.Height == guiInfo.VideoHeight / 2 ) ) b_half=True;
-      else b1=True;
+      else b1=( guiApp.videoWindow.Width == guiInfo.VideoWidth && guiApp.videoWindow.Height == guiInfo.VideoHeight );
      } else b1=!guiApp.videoWindow.isFullScreen;
     H=AddMenuCheckItem( window1, (const char*)half_xpm, Menu,MSGTR_MENU_HalfSize,b_half,evHalfSize );
     N=AddMenuCheckItem( window1, (const char*)normal_xpm, Menu,MSGTR_MENU_NormalSize"      ",b1,evNormalSize );