From 8d3ca27424d0b4a5bced70a54d7de81512e270ce Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 26 Jun 2016 19:40:10 +0200 Subject: [PATCH] Changed: Don't need to hardcode a text offset because the old font was not aligned --HG-- branch : develop --- code/nel/src/gui/ctrl_text_button.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/nel/src/gui/ctrl_text_button.cpp b/code/nel/src/gui/ctrl_text_button.cpp index 2fb19a9fc..c292d5473 100644 --- a/code/nel/src/gui/ctrl_text_button.cpp +++ b/code/nel/src/gui/ctrl_text_button.cpp @@ -43,8 +43,8 @@ namespace NLGUI _BmpLeftW= _BmpMiddleW= _BmpRightW= _BmpH= 0; _WMargin= 0; _WMin= 0; - _TextX= -2; - _TextY= -2; + _TextX= 0; + _TextY= 0; _Setuped= false; _ViewText= NULL; _IsViewTextId= false; @@ -602,7 +602,7 @@ namespace NLGUI _WMin= max(_WMin, _BmpLeftW + _BmpMiddleW + _BmpRightW); // TextY - _TextY= -2; + _TextY= 0; prop = (char*) xmlGetProp( cur, (xmlChar*)"text_y" ); if (prop) {