Applied Daniel Fairhead's patch for a correct working DELKEY in textinput buttons.

(thanks!)

Added a 'void' somewhere to silence a compiler warning.

(Windows only)
Moved the flip fullscreen button in the topheader a little to the right, since the
questionmark button mysteriously disappeared.
This commit is contained in:
2004-01-07 23:33:40 +00:00
parent f0821decff
commit d959b8127b
4 changed files with 14 additions and 14 deletions

View File

@@ -1183,16 +1183,14 @@ static int ui_do_but_TEX(uiBut *but)
else if(dev==MOUSEY) val= 0;
if(ascii) {
if( ascii>31 && ascii<127) {
if(len < but->max) {
for(x= but->max; x>but->pos; x--)
str[x]= str[x-1];
str[but->pos]= ascii;
but->pos++;
len++;
str[len]= '\0';
dodraw= 1;
}
if(len < but->max) {
for(x= but->max; x>but->pos; x--)
str[x]= str[x-1];
str[but->pos]= ascii;
but->pos++;
len++;
str[len]= '\0';
dodraw= 1;
}
}
else if(val) {
@@ -1234,7 +1232,8 @@ static int ui_do_but_TEX(uiBut *but)
str[--len]='\0';
dodraw= 1;
}
break;
case BACKSPACEKEY:
if(len!=0) {
if(get_qual() & LR_SHIFTKEY) {