Fix window title (everything use unicode)

This commit is contained in:
2025-02-19 22:12:02 -05:00
parent 8326772558
commit f83a238473
2 changed files with 6 additions and 6 deletions

View File

@@ -155,7 +155,7 @@ namespace Juliet::Win32
auto* windowState = GetWindowStateFromHandle(handle); auto* windowState = GetWindowStateFromHandle(handle);
if (!windowState) if (!windowState)
{ {
return CallWindowProcA(DefWindowProcA, handle, message, wParam, lParam); return CallWindowProc(DefWindowProc, handle, message, wParam, lParam);
} }
switch (message) switch (message)
@@ -267,6 +267,6 @@ namespace Juliet::Win32
return returnCode; return returnCode;
} }
return CallWindowProcA(DefWindowProcA, handle, message, wParam, lParam); return CallWindowProc(DefWindowProc, handle, message, wParam, lParam);
} }
} // namespace Juliet::Win32 } // namespace Juliet::Win32

View File

@@ -43,7 +43,7 @@ namespace Juliet::Win32
bool CreatePlatformWindow(NonNullPtr<DisplayDevice> self, NonNullPtr<Window> window) bool CreatePlatformWindow(NonNullPtr<DisplayDevice> self, NonNullPtr<Window> window)
{ {
// TODO : save the instance in app state or something // 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 // TODO : Put outside, we should not create a new class for each new window
WNDCLASSEX WindowClass = {}; WNDCLASSEX WindowClass = {};