mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 12:39:54 +00:00
(WIN32) Don't update title on every frame
This commit is contained in:
parent
a5d145e211
commit
b444377b50
@ -2312,7 +2312,14 @@ bool win32_set_video_mode(void *data,
|
||||
|
||||
void win32_update_title(void)
|
||||
{
|
||||
const ui_window_t *window = ui_companion_driver_get_window_ptr();
|
||||
const ui_window_t *window = ui_companion_driver_get_window_ptr();
|
||||
static unsigned update_title_wait = 0;
|
||||
|
||||
if (update_title_wait)
|
||||
{
|
||||
update_title_wait--;
|
||||
return;
|
||||
}
|
||||
|
||||
if (window)
|
||||
{
|
||||
@ -2321,6 +2328,7 @@ void win32_update_title(void)
|
||||
title[0] = '\0';
|
||||
|
||||
video_driver_get_window_title(title, sizeof(title));
|
||||
update_title_wait = g_win32_refresh_rate;
|
||||
|
||||
if (title[0])
|
||||
window->set_title(&main_window, title);
|
||||
|
Loading…
x
Reference in New Issue
Block a user