mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-24 20:02:45 +00:00
Buildfix
This commit is contained in:
parent
be65a13102
commit
c72bcd96e9
@ -4067,18 +4067,19 @@ void video_frame_delay_auto(video_driver_state_t *video_st, video_frame_delay_au
|
||||
void video_driver_update_title(void *data)
|
||||
{
|
||||
#ifndef _XBOX
|
||||
const ui_window_t *window = ui_companion_driver_get_window_ptr();
|
||||
if (window)
|
||||
const ui_window_t *window = ui_companion_driver_get_window_ptr();
|
||||
video_driver_state_t *video_st = &video_driver_st;
|
||||
if ( video_st->flags & VIDEO_FLAG_WINDOW_TITLE_UPDATE
|
||||
&& window)
|
||||
{
|
||||
static char prev_title[128];
|
||||
char title[128];
|
||||
title[0] = '\0';
|
||||
video_driver_get_window_title(title, sizeof(title));
|
||||
if (title[0] && !string_is_equal(title, prev_title))
|
||||
if ( video_st->window_title[0]
|
||||
&& !string_is_equal(video_st->window_title, prev_title))
|
||||
{
|
||||
window->set_title(&main_window, title);
|
||||
strlcpy(prev_title, title, sizeof(prev_title));
|
||||
window->set_title((void*)video_st->display_userdata, video_st->window_title);
|
||||
strlcpy(prev_title, video_st->window_title, sizeof(prev_title));
|
||||
}
|
||||
video_st->flags &= ~VIDEO_FLAG_WINDOW_TITLE_UPDATE;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user