fix - use W versions of GetMessage & DispatchMessage

This commit is contained in:
jacob 2024-04-04 17:10:42 -05:00
parent e47ccbe8f3
commit 8035e3d4bd

View File

@ -605,7 +605,7 @@ INTERNAL void window_thread_entry_point(void *arg)
while (!window->event_thread_shutdown) { while (!window->event_thread_shutdown) {
MSG msg = {0}; MSG msg = {0};
GetMessage(&msg, 0, 0, 0); GetMessageW(&msg, 0, 0, 0);
/* Update cursor */ /* Update cursor */
if (GetFocus() == window->hwnd) { if (GetFocus() == window->hwnd) {
@ -660,7 +660,7 @@ INTERNAL void window_thread_entry_point(void *arg)
default: { default: {
TranslateMessage(&msg); TranslateMessage(&msg);
DispatchMessage(&msg); DispatchMessageW(&msg);
} break; } break;
} }
} }