From f8d729e50b9751b699d008a1ecdbef98b9f067a1 Mon Sep 17 00:00:00 2001 From: driAn Date: Tue, 22 Apr 2008 19:01:56 +0000 Subject: [PATCH] menuslider width git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1823 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/menus.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/menus.cpp b/source/src/menus.cpp index 11eb08e3..7f9a030d 100644 --- a/source/src/menus.cpp +++ b/source/src/menus.cpp @@ -227,7 +227,7 @@ struct mitemslider : mitem DELETEA(action); } - virtual int width() { return text_width(text) + sliderwidth + maxvaluewidth; } + virtual int width() { return text_width(text) + sliderwidth + maxvaluewidth + 2*FONTH; } virtual void render(int x, int y, int w) { @@ -288,7 +288,7 @@ struct mitemslider : mitem s_strcpy(curval, val); delete[] val; } - else itoa(curval, value); + else itoa(curval, value); // display number only } void getmaxvaluewidth()