info = Element->Data = malloc(sizeof(*info));
info->DrawOfs = 0;
info->CursorXOfs = 0;
+ info->CursorByteOfs = 0;
+ info->Length = 0;
// No need to explicitly update parent min dims, as the AddElement routine does that
}
return 0;
}
-DEFWIDGETTYPE(ELETYPE_TEXTINPUT,
+DEFWIDGETTYPE(ELETYPE_TEXTINPUT, "TextInput",
WIDGETTYPE_FLAG_NOCHILDREN,
.Render = Widget_TextInput_Render,
.Init = Widget_TextInput_Init,