[MPlayer-cvslog] r35896 - trunk/gui/ui/menu.c
ib
subversion at mplayerhq.hu
Sat Jan 26 01:45:58 CET 2013
Author: ib
Date: Sat Jan 26 01:45:58 2013
New Revision: 35896
Log:
Remove pointless menuIsInitialized.
The draw handler won't be called prior to the initialization,
because it is set only during initialization.
Modified:
trunk/gui/ui/menu.c
Modified: trunk/gui/ui/menu.c
==============================================================================
--- trunk/gui/ui/menu.c Sat Jan 26 01:34:43 2013 (r35895)
+++ trunk/gui/ui/menu.c Sat Jan 26 01:45:58 2013 (r35896)
@@ -38,7 +38,6 @@ static int uiMenuRender = True;
int menuItem = -1;
int oldMenuItem = -1;
int menuX,menuY;
-static int menuIsInitialized = False;
static void uiMenuDraw( void )
{
@@ -99,7 +98,7 @@ static void uiMenuMouse( int Button,int
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 @@ void uiMenuInit( void )
wsWindowShape( &guiApp.menuWindow,guiApp.menu.Mask.Image );
- menuIsInitialized=True;
guiApp.menuWindow.DrawHandler=uiMenuDraw;
guiApp.menuWindow.MouseHandler=uiMenuMouse;
// guiApp.menuWindow.KeyHandler=guiApp.mainWindow.KeyHandler;
More information about the MPlayer-cvslog
mailing list