comparison gui/ui/video.c @ 35778:8ba56e7c14fb

Set MouseHandler for menu window. Adjust parameters to prototype and use this handler to call the menu. As a result, uiMenuMouse() can be static now.
author ib
date Fri, 25 Jan 2013 11:51:37 +0000
parents 16ed8155439b
children 8ad72f9cf697
comparison
equal deleted inserted replaced
35777:6d576acb772b 35778:8ba56e7c14fb
87 { 87 {
88 wsWindowMove( &guiApp.videoWindow,True,RX - sx,RY - sy ); 88 wsWindowMove( &guiApp.videoWindow,True,RX - sx,RY - sy );
89 } 89 }
90 break; 90 break;
91 case wsPMMouseButton: 91 case wsPMMouseButton:
92 uiMenuMouse( RX,RY ); 92 guiApp.menuWindow.MouseHandler( 0,RX,RY,0,0 );
93 break; 93 break;
94 default: uiPlaybarShow( Y ); break; 94 default: uiPlaybarShow( Y ); break;
95 } 95 }
96 break; 96 break;
97 case wsRLMouseButton: 97 case wsRLMouseButton: