(GX) Build fixes

This commit is contained in:
twinaphex 2014-09-12 22:12:41 +02:00
parent e54174f3a2
commit 01c9d033ae
2 changed files with 9 additions and 2 deletions

View File

@ -38,6 +38,11 @@
#define HAVE_SHADER_MANAGER #define HAVE_SHADER_MANAGER
#endif #endif
#ifdef GEKKO
extern unsigned menu_gx_resolutions[GX_RESOLUTIONS_LAST][2];
extern unsigned menu_current_gx_resolution;
#endif
// FIXME: Ugly hack, nees to be refactored badly // FIXME: Ugly hack, nees to be refactored badly
static size_t hack_shader_pass = 0; static size_t hack_shader_pass = 0;
@ -1177,6 +1182,8 @@ static int menu_action_ok(const char *menu_path,
rarch_setting_t *setting = (rarch_setting_t*) rarch_setting_t *setting = (rarch_setting_t*)
setting_data_find_setting(setting_data, menu_label); setting_data_find_setting(setting_data, menu_label);
(void)hack_shader_pass;
if (file_list_get_size(driver.menu->selection_buf) == 0) if (file_list_get_size(driver.menu->selection_buf) == 0)
return 0; return 0;

View File

@ -1764,7 +1764,7 @@ int setting_data_get_description(const char *label, char *msg,
} }
#ifdef GEKKO #ifdef GEKKO
static unsigned menu_gx_resolutions[GX_RESOLUTIONS_LAST][2] = { unsigned menu_gx_resolutions[GX_RESOLUTIONS_LAST][2] = {
{ 512, 192 }, { 512, 192 },
{ 598, 200 }, { 598, 200 },
{ 640, 200 }, { 640, 200 },
@ -1805,7 +1805,7 @@ static unsigned menu_gx_resolutions[GX_RESOLUTIONS_LAST][2] = {
{ 640, 480 }, { 640, 480 },
}; };
static unsigned menu_current_gx_resolution = GX_RESOLUTIONS_640_480; unsigned menu_current_gx_resolution = GX_RESOLUTIONS_640_480;
#endif #endif
static void menu_common_setting_set_label_perf(char *type_str, static void menu_common_setting_set_label_perf(char *type_str,