Fix window title (everything use unicode)

This commit is contained in:
Patedam committed 2025-02-19 22:12:02 -05:00
1 parent 8326772558
commit f83a238473
2 files changed
+3 -3

No files matched your search

@@ -155,7 +155,7 @@ namespace Juliet::Win32
auto* windowState = GetWindowStateFromHandle(handle);
if (!windowState)
{
return CallWindowProcA(DefWindowProcA, handle, message, wParam, lParam);
return CallWindowProc(DefWindowProc, handle, message, wParam, lParam);
}
switch (message)
@@ -267,6 +267,6 @@ namespace Juliet::Win32
return returnCode;
}
return CallWindowProcA(DefWindowProcA, handle, message, wParam, lParam);
return CallWindowProc(DefWindowProc, handle, message, wParam, lParam);
}
} // namespace Juliet::Win32
@@ -43,7 +43,7 @@ namespace Juliet::Win32
bool CreatePlatformWindow(NonNullPtr<DisplayDevice> self, NonNullPtr<Window> window)
{
// TODO : save the instance in app state or something
HINSTANCE instance = GetModuleHandle(NULL);
HINSTANCE instance = GetModuleHandle(nullptr);
// TODO : Put outside, we should not create a new class for each new window
WNDCLASSEX WindowClass = {};