input: rework abs handling, change API, allow custom key names
[libpicofe.git] / linux / emu.c
index 08421fa..65d868b 100644 (file)
@@ -17,7 +17,6 @@
 \r
 \r
 static short __attribute__((aligned(4))) sndBuffer[2*44100/50];\r
-char cpu_clk_name[] = "unused";\r
 const char *renderer_names[] = { "16bit accurate", " 8bit accurate", " 8bit fast", NULL };\r
 const char *renderer_names32x[] = { "accurate", "faster", "fastest", NULL };\r
 enum renderer_types { RT_16BIT, RT_8BIT_ACC, RT_8BIT_FAST, RT_COUNT };\r
@@ -125,9 +124,6 @@ void pemu_finalize_frame(const char *fps, const char *notice)
 \r
 static void apply_renderer(void)\r
 {\r
-       PicoScanBegin = NULL;\r
-       PicoScanEnd = NULL;\r
-\r
        switch (currentConfig.renderer) {\r
        case RT_16BIT:\r
                PicoOpt &= ~POPT_ALT_RENDERER;\r
@@ -179,6 +175,7 @@ void plat_video_menu_enter(int is_rom_loaded)
 void plat_video_menu_begin(void)\r
 {\r
        memcpy32(g_screen_ptr, g_menubg_ptr, g_screen_width * g_screen_height * 2 / 4);\r
+       g_menuscreen_ptr = g_screen_ptr;\r
 }\r
 \r
 void plat_video_menu_end(void)\r
@@ -212,7 +209,7 @@ void plat_update_volume(int has_changed, int is_up)
 {\r
 }\r
 \r
-void pemu_forced_frame(int opts)\r
+void pemu_forced_frame(int opts, int no_scale)\r
 {\r
        int po_old = PicoOpt;\r
        int eo_old = currentConfig.EmuOpt;\r