(PS3) Move PS3 ifdef

This commit is contained in:
twinaphex 2015-03-03 21:57:09 +01:00
parent 35c2d74d1a
commit 10b0423da4

View File

@ -249,29 +249,11 @@ static int action_ok_video_filter(const char *path,
if (!menu)
return -1;
#ifdef __CELLOS_LV2__
if (g_extern.console.screen.resolutions.list[
g_extern.console.screen.resolutions.current.idx] ==
CELL_VIDEO_OUT_RESOLUTION_576)
{
if (g_extern.console.screen.pal_enable)
g_extern.console.screen.pal60_enable = true;
}
else
{
g_extern.console.screen.pal_enable = false;
g_extern.console.screen.pal60_enable = false;
}
rarch_main_command(RARCH_CMD_REINIT);
return 0;
#else
return menu_list_push_stack_refresh(
menu->menu_list,
g_settings.video.filter_dir,
"deferred_video_filter",
0, idx);
#endif
}
static int action_ok_core_updater_list(const char *path,
@ -1084,6 +1066,22 @@ static int action_ok_help(const char *path,
static int action_ok_video_resolution(const char *path,
const char *label, unsigned type, size_t idx)
{
#ifdef __CELLOS_LV2__
if (g_extern.console.screen.resolutions.list[
g_extern.console.screen.resolutions.current.idx] ==
CELL_VIDEO_OUT_RESOLUTION_576)
{
if (g_extern.console.screen.pal_enable)
g_extern.console.screen.pal60_enable = true;
}
else
{
g_extern.console.screen.pal_enable = false;
g_extern.console.screen.pal60_enable = false;
}
rarch_main_command(RARCH_CMD_REINIT);
#else
if (driver.video_data && driver.video_poke &&
driver.video_poke->get_video_output_size)
{
@ -1096,6 +1094,8 @@ static int action_ok_video_resolution(const char *path,
driver.video_poke->set_video_mode(driver.video_data,
width, height, true);
}
#endif
return 0;
}