changeset 33948:8a76f05418f9

Change repositioning of the normal size video window. Move the window to the x and y "skin position", i.e. back to where it came from rather than recalculating x and y from the current video window size. This prevents unwanted window position changes.
author ib
date Thu, 01 Sep 2011 17:31:46 +0000
parents 3867c67b35a3
children ee2bcd643829
files gui/ui/main.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/main.c	Thu Sep 01 17:27:44 2011 +0000
+++ b/gui/ui/main.c	Thu Sep 01 17:31:46 2011 +0000
@@ -366,9 +366,7 @@
             uiFullScreen();
            }
           wsResizeWindow( &guiApp.subWindow, guiInfo.VideoWidth, guiInfo.VideoHeight );
-          wsMoveWindow( &guiApp.subWindow, False,
-                        ( wsMaxX - guiInfo.VideoWidth  )/2 + wsOrgX,
-                        ( wsMaxY - guiInfo.VideoHeight )/2 + wsOrgY  );
+          wsMoveWindow( &guiApp.subWindow, True, guiApp.sub.x, guiApp.sub.y );
           btnSet( evFullScreen,btnReleased );
 	  break;
          } else if ( !guiApp.subWindow.isFullScreen ) break;