changeset 35802:2849b02700e5

Remove pointless menuIsInitialized. The draw handler won't be called prior to the initialization, because it is set only during initialization.
author ib
date Sat, 26 Jan 2013 00:45:58 +0000
parents 98693cc5df48
children 8e5a3da0a858
files gui/ui/menu.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/menu.c	Sat Jan 26 00:34:43 2013 +0000
+++ b/gui/ui/menu.c	Sat Jan 26 00:45:58 2013 +0000
@@ -38,7 +38,6 @@
 int             menuItem = -1;
 int             oldMenuItem = -1;
 int             menuX,menuY;
-static int      menuIsInitialized = False;
 
 static void uiMenuDraw( void )
 {
@@ -99,7 +98,7 @@
 void uiMenuInit( void )
 {
 
- if ( menuIsInitialized || !guiApp.menuIsPresent || !guiApp.menu.Bitmap.Image ) return;
+ if ( !guiApp.menuIsPresent || !guiApp.menu.Bitmap.Image ) return;
 
  guiApp.menu.x=0;
  guiApp.menu.y=0;
@@ -119,7 +118,6 @@
 
  wsWindowShape( &guiApp.menuWindow,guiApp.menu.Mask.Image );
 
- menuIsInitialized=True;
  guiApp.menuWindow.DrawHandler=uiMenuDraw;
  guiApp.menuWindow.MouseHandler=uiMenuMouse;
 // guiApp.menuWindow.KeyHandler=guiApp.mainWindow.KeyHandler;