diff gui/ui/main.c @ 33993:57d711d3dcca

Change parameter b of wsMoveWindow(). Make it Bool, rename it abs and reverse its meaning. The parameter now indicates whether x and y shall be handled as real, absolute position values or as possibly mock ones.
author ib
date Thu, 08 Sep 2011 11:11:02 +0000
parents bb35e74851cd
children 68633e7c5e1e
line wrap: on
line diff
--- a/gui/ui/main.c	Thu Sep 08 10:43:11 2011 +0000
+++ b/gui/ui/main.c	Thu Sep 08 11:11:02 2011 +0000
@@ -338,7 +338,7 @@
             uiFullScreen();
            }
           wsResizeWindow( &guiApp.subWindow, guiInfo.VideoWidth / 2, guiInfo.VideoHeight / 2 );
-          wsMoveWindow( &guiApp.subWindow, False,
+          wsMoveWindow( &guiApp.subWindow, True,
                         ( wsMaxX - guiInfo.VideoWidth/2  )/2 + wsOrgX,
                         ( wsMaxY - guiInfo.VideoHeight/2 )/2 + wsOrgY  );
           btnSet( evFullScreen,btnReleased );
@@ -352,7 +352,7 @@
             uiFullScreen();
            }
           wsResizeWindow( &guiApp.subWindow, guiInfo.VideoWidth * 2, guiInfo.VideoHeight * 2 );
-          wsMoveWindow( &guiApp.subWindow, False,
+          wsMoveWindow( &guiApp.subWindow, True,
                         ( wsMaxX - guiInfo.VideoWidth*2  )/2 + wsOrgX,
                         ( wsMaxY - guiInfo.VideoHeight*2 )/2 + wsOrgY  );
           btnSet( evFullScreen,btnReleased );
@@ -366,7 +366,7 @@
             uiFullScreen();
            }
           wsResizeWindow( &guiApp.subWindow, guiInfo.VideoWidth, guiInfo.VideoHeight );
-          wsMoveWindow( &guiApp.subWindow, True, guiApp.sub.x, guiApp.sub.y );
+          wsMoveWindow( &guiApp.subWindow, False, guiApp.sub.x, guiApp.sub.y );
           btnSet( evFullScreen,btnReleased );
 	  break;
          } else if ( !guiApp.subWindow.isFullScreen ) break;
@@ -377,7 +377,7 @@
           if ( !guiApp.subWindow.isFullScreen )
            {
             wsResizeWindow( &guiApp.subWindow, guiInfo.VideoWidth, guiInfo.VideoHeight );
-            wsMoveWindow( &guiApp.subWindow, True, guiApp.sub.x, guiApp.sub.y );
+            wsMoveWindow( &guiApp.subWindow, False, guiApp.sub.x, guiApp.sub.y );
            }
          }
 	if ( guiApp.subWindow.isFullScreen ) btnSet( evFullScreen,btnPressed );
@@ -523,7 +523,7 @@
           switch ( itemtype )
            {
             case itPLMButton:
-                 wsMoveWindow( &guiApp.mainWindow,False,RX - abs( sx ),RY - abs( sy ) );
+                 wsMoveWindow( &guiApp.mainWindow,True,RX - abs( sx ),RY - abs( sy ) );
                  uiMainRender=0;
                  break;
             case itPRMButton: