git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor misc fixes
[tpg/acess2.git]
/
Usermode
/
Applications
/
axwin3_src
/
WM
/
renderers
/
widget
/
textinput.c
diff --git
a/Usermode/Applications/axwin3_src/WM/renderers/widget/textinput.c
b/Usermode/Applications/axwin3_src/WM/renderers/widget/textinput.c
index
831565b
..
de862bf
100644
(file)
--- a/
Usermode/Applications/axwin3_src/WM/renderers/widget/textinput.c
+++ b/
Usermode/Applications/axwin3_src/WM/renderers/widget/textinput.c
@@
-117,6
+117,8
@@
void Widget_TextInput_Init(tElement *Element)
info = Element->Data = malloc(sizeof(*info));
info->DrawOfs = 0;
info->CursorXOfs = 0;
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
}
// No need to explicitly update parent min dims, as the AddElement routine does that
}
@@
-218,7
+220,7
@@
int Widget_TextInput_KeyFire(tElement *Element, int KeySym, int Character)
return 0;
}
return 0;
}
-DEFWIDGETTYPE(ELETYPE_TEXTINPUT,
+DEFWIDGETTYPE(ELETYPE_TEXTINPUT,
"TextInput",
WIDGETTYPE_FLAG_NOCHILDREN,
.Render = Widget_TextInput_Render,
.Init = Widget_TextInput_Init,
WIDGETTYPE_FLAG_NOCHILDREN,
.Render = Widget_TextInput_Render,
.Init = Widget_TextInput_Init,
UCC
git Repository :: git.ucc.asn.au