comparison gui/ui/sub.c @ 33942:afede91f9d5f

Don't use current x and y position of video window for saving. Save the x and y position according to the skin file instead of the current window position and update this "skin position" when the window gets moved. This prevents unwanted window position changes when saving. (A window will change its size during playback and a right aligned window thus its x and y position.)
author ib
date Thu, 01 Sep 2011 16:44:52 +0000
parents cee9987bc81d
children 3a93b9227b01
comparison
equal deleted inserted replaced
33941:8beec562ce0e 33942:afede91f9d5f
83 case wsMoveMouse: 83 case wsMoveMouse:
84 switch ( msButton ) 84 switch ( msButton )
85 { 85 {
86 case wsPLMouseButton: 86 case wsPLMouseButton:
87 mplSubMoved=1; 87 mplSubMoved=1;
88 if ( !guiApp.subWindow.isFullScreen ) wsMoveWindow( &guiApp.subWindow,False,RX - sx,RY - sy ); 88 if ( !guiApp.subWindow.isFullScreen )
89 {
90 wsMoveWindow( &guiApp.subWindow,False,RX - sx,RY - sy );
91 guiApp.sub.x = guiApp.subWindow.X;
92 guiApp.sub.y = guiApp.subWindow.Y;
93 // NOTE TO MYSELF: dragging the title bar goes unnoticed?
94 }
89 break; 95 break;
90 case wsPMMouseButton: 96 case wsPMMouseButton:
91 uiMenuMouseHandle( X,Y,RX,RY ); 97 uiMenuMouseHandle( X,Y,RX,RY );
92 break; 98 break;
93 default: uiPlaybarShow( X,Y ); break; 99 default: uiPlaybarShow( X,Y ); break;