Changed: Don't change x or y in these cases

--HG--
branch : develop
feature/pipeline-tools
kervala 8 years ago
parent e2f776d21e
commit 3defbbbc89

@ -1762,16 +1762,12 @@ namespace NLGUI
// *** According to best matching hotspot, and new screen resolution, move the window // *** According to best matching hotspot, and new screen resolution, move the window
// x // x
if(bestXHotSpot==Hotspot_xL) if(bestXHotSpot==Hotspot_xM)
x= x;
else if(bestXHotSpot==Hotspot_xM)
x= newScreenW/2 + posXToMiddle - w/2; x= newScreenW/2 + posXToMiddle - w/2;
else if(bestXHotSpot==Hotspot_xR) else if(bestXHotSpot==Hotspot_xR)
x= newScreenW - posXToRight - w; x= newScreenW - posXToRight - w;
// y // y
if(bestYHotSpot==Hotspot_Bx) if(bestYHotSpot==Hotspot_Mx)
y= y;
else if(bestYHotSpot==Hotspot_Mx)
y= newScreenH/2 + posYToMiddle + h/2; y= newScreenH/2 + posYToMiddle + h/2;
else if(bestYHotSpot==Hotspot_Tx) else if(bestYHotSpot==Hotspot_Tx)
y= newScreenH - posYToTop; y= newScreenH - posYToTop;

Loading…
Cancel
Save