From 37102a8e167805e63b295c9d97459cdba0082778 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 31 Jan 2019 20:12:41 +0100 Subject: [PATCH] * Header include optimization * Silence warning with CXX_BUILD (retroarch.c) --- gfx/video_driver.h | 2 +- retroarch.c | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/gfx/video_driver.h b/gfx/video_driver.h index 26a738cf0c..dd195698e4 100644 --- a/gfx/video_driver.h +++ b/gfx/video_driver.h @@ -38,7 +38,7 @@ #include "video_filter.h" #include "video_shader_parse.h" -#include "../input/input_driver.h" +#include "../input/input_types.h" #define RARCH_SCALE_BASE 256 diff --git a/retroarch.c b/retroarch.c index 3efaa4e2d2..dfcbc8780e 100644 --- a/retroarch.c +++ b/retroarch.c @@ -3786,17 +3786,20 @@ void rarch_force_video_driver_fallback(const char *driver) if (msg_window) { - ui_msg_window_state window_state = {0}; + ui_msg_window_state window_state; char *title = strdup(msg_hash_to_str(MSG_ERROR)); char text[PATH_MAX_LENGTH]; - text[0] = '\0'; + text[0] = '\0'; - snprintf(text, sizeof(text), msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_DRIVER_FALLBACK), driver); + snprintf(text, sizeof(text), + msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_DRIVER_FALLBACK), + driver); window_state.buttons = UI_MSG_WINDOW_OK; - window_state.title = title; - window_state.text = strdup(text); + window_state.text = strdup(text); + window_state.title = title; + window_state.window = NULL; msg_window->error(&window_state);