Skip to content

Commit

Permalink
Fixed: Upon changing the custom resolution height in the control pane…
Browse files Browse the repository at this point in the history
…l, the label shown on the "Change to" button would indicate the color depth had changed to 16bit.
  • Loading branch information
danij-deng committed Mar 27, 2010
1 parent 1c4a3e9 commit b82c51c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/ui_main.c
Expand Up @@ -1141,7 +1141,7 @@ int UIEdit_Responder(ui_object_t *ob, ddevent_t *ev)

case DDKEY_RETURN:
// Store changes.
memset(dat->ptr, 0, dat->maxlen + 1);
memset(dat->ptr, 0, dat->maxlen);
strncpy(dat->ptr, ob->text, dat->maxlen);
if(ob->action)
ob->action(ob);
Expand Down

0 comments on commit b82c51c

Please sign in to comment.