From 259552ed0d696114f77b57888a3d26c3cfb8e79f Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 19 Dec 2016 17:46:38 +0100 Subject: [PATCH] Changed: Don't change x or y in these cases --- code/nel/src/gui/widget_manager.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/code/nel/src/gui/widget_manager.cpp b/code/nel/src/gui/widget_manager.cpp index 972039b25..d256704cb 100644 --- a/code/nel/src/gui/widget_manager.cpp +++ b/code/nel/src/gui/widget_manager.cpp @@ -1762,16 +1762,12 @@ namespace NLGUI // *** According to best matching hotspot, and new screen resolution, move the window // x - if(bestXHotSpot==Hotspot_xL) - x= x; - else if(bestXHotSpot==Hotspot_xM) + if(bestXHotSpot==Hotspot_xM) x= newScreenW/2 + posXToMiddle - w/2; else if(bestXHotSpot==Hotspot_xR) x= newScreenW - posXToRight - w; // y - if(bestYHotSpot==Hotspot_Bx) - y= y; - else if(bestYHotSpot==Hotspot_Mx) + if(bestYHotSpot==Hotspot_Mx) y= newScreenH/2 + posYToMiddle + h/2; else if(bestYHotSpot==Hotspot_Tx) y= newScreenH - posYToTop;