menuslider width

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1823 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-04-22 19:01:56 +00:00
parent d7761f48fc
commit f8d729e50b
+2 -2
View File
@@ -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()