mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
Prevent implicit memsets for WGL context update_window_title
function
This commit is contained in:
parent
64154f6060
commit
219880a72b
@ -390,11 +390,13 @@ static bool gfx_ctx_wgl_set_resize(void *data,
|
|||||||
|
|
||||||
static void gfx_ctx_wgl_update_window_title(void *data)
|
static void gfx_ctx_wgl_update_window_title(void *data)
|
||||||
{
|
{
|
||||||
char buf[128] = {0};
|
char buf[128];
|
||||||
char buf_fps[128] = {0};
|
char buf_fps[128];
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
const ui_window_t *window = ui_companion_driver_get_window_ptr();
|
const ui_window_t *window = ui_companion_driver_get_window_ptr();
|
||||||
|
|
||||||
|
buf[0] = buf_fps[0] = '\0';
|
||||||
|
|
||||||
if (window && video_monitor_get_fps(buf, sizeof(buf),
|
if (window && video_monitor_get_fps(buf, sizeof(buf),
|
||||||
buf_fps, sizeof(buf_fps)))
|
buf_fps, sizeof(buf_fps)))
|
||||||
window->set_title(&main_window, buf);
|
window->set_title(&main_window, buf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user