comparison gui/ui/menu.c @ 35780:4073fff5efc7

Add new functions uiMainInit() and uiVideoInit(). Relocate handler initialization stuff there and reorder the windows init calls. As a result, all handler functions can be static now.
author ib
date Fri, 25 Jan 2013 12:26:31 +0000
parents 8ba56e7c14fb
children e30d541b3ea6
comparison
equal deleted inserted replaced
35779:8ad72f9cf697 35780:4073fff5efc7
119 mp_msg( MSGT_GPLAYER,MSGL_DBG2,"[menu] menuWindow ID: 0x%x\n",(int)guiApp.menuWindow.WindowID ); 119 mp_msg( MSGT_GPLAYER,MSGL_DBG2,"[menu] menuWindow ID: 0x%x\n",(int)guiApp.menuWindow.WindowID );
120 120
121 menuIsInitialized=True; 121 menuIsInitialized=True;
122 guiApp.menuWindow.DrawHandler=uiMenuDraw; 122 guiApp.menuWindow.DrawHandler=uiMenuDraw;
123 guiApp.menuWindow.MouseHandler=uiMenuMouse; 123 guiApp.menuWindow.MouseHandler=uiMenuMouse;
124 // guiApp.menuWindow.KeyHandler=uiMainKey; 124 // guiApp.menuWindow.KeyHandler=guiApp.mainWindow.KeyHandler;
125 uiMenuRender=True; wsWindowRedraw( &guiApp.menuWindow ); 125 uiMenuRender=True; wsWindowRedraw( &guiApp.menuWindow );
126 } 126 }
127 127
128 void uiMenuShow( int mx,int my ) 128 void uiMenuShow( int mx,int my )
129 { 129 {