fixed build for linux

This commit is contained in:
aap 2018-05-20 17:53:44 +02:00
parent 70114f8e3e
commit 4f5687dd2e
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ keypress(GLFWwindow *window, int key, int scancode, int action, int mods)
static void static void
charinput(GLFWwindow *window, unsigned int c) charinput(GLFWwindow *window, unsigned int c)
{ {
EventHandler(CHARINPUT, (void*)c); EventHandler(CHARINPUT, (void*)(uintptr)c);
} }
static void static void

View File

@ -192,7 +192,7 @@ ImGuiEventHandler(sk::Event e, void *param)
io.KeysDown[c] = 0; io.KeysDown[c] = 0;
return EVENTPROCESSED; return EVENTPROCESSED;
case CHARINPUT: case CHARINPUT:
c = (uint)param; c = (uint)(uintptr)param;
io.AddInputCharacter((unsigned short)c); io.AddInputCharacter((unsigned short)c);
return EVENTPROCESSED; return EVENTPROCESSED;
case MOUSEMOVE: case MOUSEMOVE: