This commit is contained in:
parent
40cae5d2a5
commit
7b9870cebc
11 changed files with 66 additions and 25 deletions
|
|
@ -133,7 +133,7 @@ static void click(MwWidget handle) {
|
|||
MwListBoxInsert(cb->listbox, -1, packet);
|
||||
MwListBoxDestroyPacket(packet);
|
||||
|
||||
MwAddUserHandler(cb->listbox, MwNactivateHandler, listbox_activate, NULL);
|
||||
MwAddUserHandler(cb->listbox, MwNlistBoxActivateHandler, listbox_activate, NULL);
|
||||
|
||||
p.x = 0;
|
||||
p.y = MwGetInteger(handle, MwNheight);
|
||||
|
|
|
|||
|
|
@ -102,6 +102,7 @@ static void key(MwWidget handle, int code) {
|
|||
MwUTF8Copy(str, t->cursor + 1, out, t->cursor, MwUTF8Length(str) - (t->cursor + 1));
|
||||
|
||||
MwSetText(handle, MwNtext, out);
|
||||
MwDispatchUserHandler(handle, MwNchangedHandler, NULL);
|
||||
|
||||
free(out);
|
||||
} else if(code == MwLLKeyLeft) {
|
||||
|
|
@ -124,6 +125,7 @@ static void key(MwWidget handle, int code) {
|
|||
t->cursor++;
|
||||
|
||||
MwSetText(handle, MwNtext, out);
|
||||
MwDispatchUserHandler(handle, MwNchangedHandler, NULL);
|
||||
|
||||
free(out);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -108,6 +108,8 @@ static void mouse_up(MwWidget handle, void* ptr) {
|
|||
MwStringPrintIntoBuffer(s, 512, "%g", atof(str) + 1);
|
||||
}
|
||||
MwSetText(handle, MwNtext, s);
|
||||
|
||||
MwDispatchUserHandler(handle, MwNchangedHandler, NULL);
|
||||
}
|
||||
|
||||
MwForceRender(handle);
|
||||
|
|
|
|||
|
|
@ -556,8 +556,8 @@ static void* mwVulkanGetFieldImpl(MwWidget handle, int field, int* err) {
|
|||
|
||||
static void func_handler(MwWidget handle, const char* name, void* output, va_list va) {
|
||||
if(strcmp(name, "mwVulkanGetField") == 0) {
|
||||
int field = va_arg(va, int);
|
||||
int* err = va_arg(va, int*);
|
||||
int field = va_arg(va, int);
|
||||
int* err = va_arg(va, int*);
|
||||
*(void**)output = mwVulkanGetFieldImpl(handle, field, err);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue