* Header include optimization

* Silence warning with CXX_BUILD (retroarch.c)
This commit is contained in:
twinaphex 2019-01-31 20:12:41 +01:00
parent 9421584772
commit 37102a8e16
2 changed files with 9 additions and 6 deletions

View File

@ -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

View File

@ -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);