mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-03 13:51:02 +00:00
need to use SetWindowText for LEGACY_WIN32
This commit is contained in:
parent
849ed7fc3d
commit
cfb2ae7d2c
@ -118,10 +118,11 @@ static void ui_window_win32_set_title(void *data, char *buf)
|
||||
ui_window_win32_t *window = (ui_window_win32_t*)data;
|
||||
#ifdef LEGACY_WIN32
|
||||
char *title_local = utf8_to_local_string_alloc(buf);
|
||||
SetWindowText(window->hwnd, title_local);
|
||||
#else
|
||||
wchar_t *title_local = utf8_to_utf16_string_alloc(buf);
|
||||
#endif
|
||||
SetWindowTextW(window->hwnd, title_local);
|
||||
#endif
|
||||
free(title_local);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user