changeset 33997:68633e7c5e1e

Preserve x and y position of a half-size window. Don't change position in an evHalfSize event.
author ib
date Thu, 08 Sep 2011 14:00:12 +0000
parents acf8545dc4b5
children ca20e4098c1d
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 08 13:42:53 2011 +0000
+++ b/gui/ui/main.c	Thu Sep 08 14:00:12 2011 +0000
@@ -338,9 +338,7 @@
             uiFullScreen();
            }
           wsResizeWindow( &guiApp.subWindow, guiInfo.VideoWidth / 2, guiInfo.VideoHeight / 2 );
-          wsMoveWindow( &guiApp.subWindow, True,
-                        ( wsMaxX - guiInfo.VideoWidth/2  )/2 + wsOrgX,
-                        ( wsMaxY - guiInfo.VideoHeight/2 )/2 + wsOrgY  );
+          wsMoveWindow( &guiApp.subWindow, False, guiApp.sub.x, guiApp.sub.y );
           btnSet( evFullScreen,btnReleased );
          }
         break;