From 88f61579846e19a4681cfe0d5f7f3a6b63f86587 Mon Sep 17 00:00:00 2001 From: John Palomo Jr Date: Tue, 9 Feb 2016 02:49:28 -0500 Subject: [PATCH] Fixed: Player color slider size/position was wrong when using language strings. --- src/menu/playermenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/menu/playermenu.cpp b/src/menu/playermenu.cpp index 184b5a465..691986548 100644 --- a/src/menu/playermenu.cpp +++ b/src/menu/playermenu.cpp @@ -484,7 +484,7 @@ void FSliderItem::Drawer(bool selected) screen->DrawText(mFont, selected? OptionSettings.mFontColorSelection : mFontColor, mXpos, mYpos, text, DTA_Clean, true, TAG_DONE); int x = SmallFont->StringWidth ("Green") + 8 + mXpos; - int x2 = SmallFont->StringWidth (mText) + 8 + mXpos; + int x2 = SmallFont->StringWidth (text) + 8 + mXpos; DrawSlider (MAX(x2, x), mYpos); }