mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 18:58:21 +00:00
Move video_context_driver_update_window_title to video_driver_frame
This commit is contained in:
parent
45a648b042
commit
f6c8aba119
@ -1471,8 +1471,6 @@ static bool d3d_frame(void *data, const void *frame,
|
||||
}
|
||||
#endif
|
||||
|
||||
video_context_driver_update_window_title(video_info);
|
||||
|
||||
video_context_driver_swap_buffers(video_info);
|
||||
|
||||
return true;
|
||||
|
@ -272,8 +272,6 @@ static bool gdi_gfx_frame(void *data, const void *frame,
|
||||
|
||||
InvalidateRect(hwnd, NULL, false);
|
||||
|
||||
video_context_driver_update_window_title(video_info);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1272,8 +1272,6 @@ static bool gl_frame(void *data, const void *frame,
|
||||
gl_render_overlay(gl, video_info);
|
||||
#endif
|
||||
|
||||
video_context_driver_update_window_title(video_info);
|
||||
|
||||
#ifdef HAVE_FBO
|
||||
/* Reset state which could easily mess up libretro core. */
|
||||
if (gl->hw_render_fbo_init)
|
||||
|
@ -422,8 +422,6 @@ static bool vg_frame(void *data, const void *frame,
|
||||
vg_draw_message(vg, msg);
|
||||
#endif
|
||||
|
||||
video_context_driver_update_window_title(video_info);
|
||||
|
||||
video_context_driver_swap_buffers(video_info);
|
||||
|
||||
return true;
|
||||
|
@ -244,8 +244,6 @@ static bool vga_gfx_frame(void *data, const void *frame,
|
||||
if (msg)
|
||||
font_driver_render_msg(video_info, NULL, msg, NULL);
|
||||
|
||||
video_context_driver_update_window_title(video_info);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1936,13 +1936,8 @@ static bool vulkan_frame(void *data, const void *frame,
|
||||
slock_unlock(vk->context->queue_lock);
|
||||
#endif
|
||||
|
||||
|
||||
video_context_driver_swap_buffers(video_info);
|
||||
|
||||
|
||||
if (!vk->context->swap_interval_emulation_lock)
|
||||
video_context_driver_update_window_title(video_info);
|
||||
|
||||
/* Handle spurious swapchain invalidations as soon as we can,
|
||||
* i.e. right after swap buffers. */
|
||||
if (vk->should_resize)
|
||||
|
@ -2267,6 +2267,9 @@ void video_driver_frame(const void *data, unsigned width,
|
||||
|
||||
if (video_info.fps_show)
|
||||
runloop_msg_queue_push(video_info.fps_text, 1, 1, false);
|
||||
|
||||
if (current_video_context && current_video_context->update_window_title)
|
||||
current_video_context->update_window_title(video_context_data, &video_info);
|
||||
}
|
||||
|
||||
void video_driver_display_type_set(enum rarch_display_type type)
|
||||
|
@ -906,10 +906,6 @@ bool video_context_driver_set(const gfx_ctx_driver_t *data);
|
||||
|
||||
void video_context_driver_destroy(void);
|
||||
|
||||
#define video_context_driver_update_window_title(video_info) \
|
||||
if (current_video_context && current_video_context->update_window_title) \
|
||||
current_video_context->update_window_title(video_context_data, video_info)
|
||||
|
||||
#define video_context_driver_swap_buffers(video_info) \
|
||||
if (current_video_context && current_video_context->swap_buffers) \
|
||||
current_video_context->swap_buffers(video_context_data, video_info)
|
||||
|
Loading…
Reference in New Issue
Block a user