(RGUI) Can't have VLAs for Xbox 1 / MSVC

This commit is contained in:
twinaphex 2013-03-10 16:37:34 +01:00
parent ae9ddf362b
commit b54cf4cd87
2 changed files with 5 additions and 8 deletions

View File

@ -405,7 +405,7 @@ static void render_text(rgui_handle_t *rgui)
render_background(rgui);
char title[TERM_WIDTH];
char title[256];
const char *dir = 0;
rgui_file_type_t menu_type = 0;
rgui_list_back(rgui->path_stack, &dir, &menu_type, NULL);
@ -433,8 +433,8 @@ static void render_text(rgui_handle_t *rgui)
const char *path = 0;
rgui_file_type_t type = 0;
rgui_list_at(rgui->folder_buf, i, &path, &type, NULL);
char message[TERM_WIDTH + 1];
char type_str[TERM_WIDTH + 1];
char message[256];
char type_str[256];
int w = rgui_is_controller_menu(menu_type) ? 26 : 19;
#ifdef RARCH_CONSOLE
unsigned port = menu_type - RGUI_SETTINGS_CONTROLLER_1;
@ -561,7 +561,7 @@ static void render_text(rgui_handle_t *rgui)
}
const char *entry_title;
char tmp[TERM_WIDTH];
char tmp[256];
size_t path_len = strlen(path);
// trim long filenames
if ((type == RGUI_FILE_PLAIN || type == RGUI_FILE_DIRECTORY) && path_len > TERM_WIDTH - (w + 1 + 2))

View File

@ -404,12 +404,9 @@ const gfx_ctx_driver_t gfx_ctx_xdk = {
gfx_ctx_write_egl_image,
NULL,
"xdk",
// RARCH_CONSOLE stuff.
#if defined(HAVE_RMENU)
gfx_ctx_xdk_get_available_resolutions,
gfx_ctx_xdk_check_resolution,
#if defined(HAVE_RMENU)
gfx_ctx_xdk_menu_init,
gfx_ctx_xdk_menu_frame,
gfx_ctx_xdk_menu_free,