mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2024-11-23 01:59:46 +00:00
Make testnative (on win32) UNICODE compatible
This commit is contained in:
parent
992f80eb51
commit
72d5f39e5c
@ -56,20 +56,20 @@ CreateWindowNative(int w, int h)
|
||||
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
|
||||
wc.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
|
||||
wc.lpszMenuName = NULL;
|
||||
wc.lpszClassName = "SDL Test";
|
||||
wc.lpszClassName = TEXT("SDL Test");
|
||||
|
||||
if (!RegisterClass(&wc)) {
|
||||
MessageBox(NULL, "Window Registration Failed!", "Error!",
|
||||
MessageBox(NULL, TEXT("Window Registration Failed!"), TEXT("Error!"),
|
||||
MB_ICONEXCLAMATION | MB_OK);
|
||||
return 0;
|
||||
}
|
||||
|
||||
hwnd =
|
||||
CreateWindow("SDL Test", "", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT,
|
||||
CreateWindow(TEXT("SDL Test"), TEXT(""), WS_OVERLAPPEDWINDOW, CW_USEDEFAULT,
|
||||
CW_USEDEFAULT, w, h, NULL, NULL, GetModuleHandle(NULL),
|
||||
NULL);
|
||||
if (!hwnd) {
|
||||
MessageBox(NULL, "Window Creation Failed!", "Error!",
|
||||
MessageBox(NULL, TEXT("Window Creation Failed!"), TEXT("Error!"),
|
||||
MB_ICONEXCLAMATION | MB_OK);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user