text-input width
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1919 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -162,7 +162,7 @@ struct mitemtextinput : mitemtext
|
||||
virtual void render(int x, int y, int w)
|
||||
{
|
||||
bool selection = isselection();
|
||||
int tw = max(text_width(text), VIRTW/4);
|
||||
int tw = VIRTW/4;
|
||||
if(selection) renderbg(x+w-tw, y-FONTH/6, tw, NULL);
|
||||
draw_text(text, x, y);
|
||||
int offset = text_width(input.buf, input.pos>=0 ? input.pos : -1);
|
||||
|
||||
Reference in New Issue
Block a user