g++ warning fix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user