frontend: add renderer toggle option
authornotaz <notasas@gmail.com>
Wed, 15 Aug 2012 18:52:52 +0000 (21:52 +0300)
committernotaz <notasas@gmail.com>
Thu, 11 Oct 2012 21:05:07 +0000 (00:05 +0300)
frontend/main.c
frontend/main.h
frontend/menu.c
frontend/plat_pandora.c

index c98e9e0..7c15cb0 100644 (file)
@@ -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];
index bdb4870..56e1e73 100644 (file)
@@ -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,
index 2fc56ba..f0fd17c 100644 (file)
@@ -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 },
index 9ec747d..b6447cf 100644 (file)
@@ -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 }
 };