X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pandora%2Fmenu.c;h=aec6c9fcc5bcae7779b32bd760af620e00de8859;hb=902972d1c7f353aebb17a5ab587b2526e1a45d60;hp=ae2a079086e91f63333299c3b853098bfad14505;hpb=c66f49e61a09926e828b2685cc997a6ebee7cdb4;p=libpicofe.git diff --git a/pandora/menu.c b/pandora/menu.c index ae2a079..aec6c9f 100644 --- a/pandora/menu.c +++ b/pandora/menu.c @@ -21,10 +21,10 @@ static int menu_loop_cscaler(menu_id id, int keys) for (;;) { - plat_video_menu_begin(); + menu_draw_begin(0); memset(g_menuscreen_ptr, 0, g_menuscreen_w * g_menuscreen_h * 2); text_out16(2, 480 - 18, "%dx%d | d-pad to resize, R+d-pad to move", g_layer_cw, g_layer_ch); - plat_video_menu_end(); + menu_draw_end(); inp = in_menu_wait(PBTN_UP|PBTN_DOWN|PBTN_LEFT|PBTN_RIGHT|PBTN_R|PBTN_MOK|PBTN_MBACK, 40); if (inp & PBTN_UP) g_layer_cy--; @@ -81,6 +81,8 @@ static int menu_loop_cscaler(menu_id id, int keys) #include static menu_entry e_menu_gfx_options[]; +static menu_entry e_menu_options[]; +static menu_entry e_menu_keyconfig[]; void pnd_menu_init(void) { @@ -139,5 +141,10 @@ void pnd_menu_init(void) i = me_id2offset(e_menu_gfx_options, MA_OPT3_FILTERING); e_menu_gfx_options[i].data = (void *)mfilters; pnd_filter_list = mfilters; + + i = me_id2offset(e_menu_options, MA_OPT_CPU_CLOCKS); + e_menu_options[i].name = "Max CPU clock"; + + me_enable(e_menu_keyconfig, MA_CTRL_DEADZONE, 0); }