g++ warning fix

This commit is contained in:
ac-stef
2014-01-26 20:22:36 +01:00
parent 4d5503be95
commit 0c233458c7
+4 -4
View File
@@ -525,8 +525,8 @@ struct mitemtextinput : mitemtext
sc++;
}
copystring(showinput, input.buf + iboff, sc + 1);
char *masked;
char *masked = NULL;
if(hideinput) // "mask" user input with asterisks, use for menuitemtextinputs that take passwords // TODO: better masking code?
{
masked = newstring(showinput);
@@ -535,14 +535,14 @@ struct mitemtextinput : mitemtext
masked[i] = '*';
}
}
draw_text(hideinput ? masked : showinput, x+w-tw, y, 255, 255, 255, 255, selection ? (input.pos>=0 ? (input.pos > sc ? sc : input.pos) : cibl) : -1);
}
virtual void focus(bool on)
{
if(on && hoveraction) execute(hoveraction);
SDL_EnableUNICODE(on);
if(!strlen(input.buf)) setdefaultvalue();
if(action && !on && modified)