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
charinput(GLFWwindow *window, unsigned int c)
{
EventHandler(CHARINPUT, (void*)c);
EventHandler(CHARINPUT, (void*)(uintptr)c);
}
static void

View File

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