From d81b8e972678928ffece2d38213de8048f5e872d Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 15 Aug 2012 21:52:52 +0300 Subject: [PATCH] frontend: add renderer toggle option --- frontend/main.c | 5 +++++ frontend/main.h | 1 + frontend/menu.c | 1 + frontend/plat_pandora.c | 1 + 4 files changed, 8 insertions(+) diff --git a/frontend/main.c b/frontend/main.c index c98e9e0c..7c15cb09 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -232,6 +232,11 @@ do_state_slot: pl_rearmed_cbs.frameskip == 0 ? "OFF" : "1" ); plugin_call_rearmed_cbs(); break; + case SACTION_TOGGLE_RENDERER: + pl_rearmed_cbs.gpu_neon.enhancement_enable = + !pl_rearmed_cbs.gpu_neon.enhancement_enable; + plugin_call_rearmed_cbs(); + break; case SACTION_SCREENSHOT: { char buf[MAXPATHLEN]; diff --git a/frontend/main.h b/frontend/main.h index bdb48702..56e1e735 100644 --- a/frontend/main.h +++ b/frontend/main.h @@ -65,6 +65,7 @@ enum sched_action { SACTION_NEXT_SSLOT, SACTION_PREV_SSLOT, SACTION_TOGGLE_FSKIP, + SACTION_TOGGLE_RENDERER, SACTION_SCREENSHOT, SACTION_VOLUME_UP, SACTION_VOLUME_DOWN, diff --git a/frontend/menu.c b/frontend/menu.c index 2fc56ba6..f0fd17c4 100644 --- a/frontend/menu.c +++ b/frontend/menu.c @@ -663,6 +663,7 @@ me_bind_action emuctrl_actions[] = { "Next Save Slot ", 1 << SACTION_NEXT_SSLOT }, { "Toggle Frameskip ", 1 << SACTION_TOGGLE_FSKIP }, { "Take Screenshot ", 1 << SACTION_SCREENSHOT }, + { "Toggle Renderer ", 1 << SACTION_TOGGLE_RENDERER }, { "Enter Menu ", 1 << SACTION_ENTER_MENU }, #ifdef __ARM_ARCH_7A__ /* XXX */ { "Minimize ", 1 << SACTION_MINIMIZE }, diff --git a/frontend/plat_pandora.c b/frontend/plat_pandora.c index 9ec747db..b6447cf9 100644 --- a/frontend/plat_pandora.c +++ b/frontend/plat_pandora.c @@ -65,6 +65,7 @@ static const struct in_default_bind in_evdev_defbinds[] = { { KEY_4, IN_BINDTYPE_EMU, SACTION_NEXT_SSLOT }, { KEY_5, IN_BINDTYPE_EMU, SACTION_TOGGLE_FSKIP }, { KEY_6, IN_BINDTYPE_EMU, SACTION_SCREENSHOT }, + { KEY_7, IN_BINDTYPE_EMU, SACTION_TOGGLE_RENDERER }, { 0, 0, 0 } }; -- 2.39.5