# HG changeset patch # User ib # Date 1315490412 0 # Node ID 68633e7c5e1e6a313de93e841319d3172b47a2cf # Parent acf8545dc4b5dfe1f097f64a772585f0fec98c17 Preserve x and y position of a half-size window. Don't change position in an evHalfSize event. diff -r acf8545dc4b5 -r 68633e7c5e1e gui/ui/main.c --- 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;