X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2Fmenu.c;h=522154379d6c7a6898b815f5302cd1ce1707faca;hb=24b24674aedbdcb4432ab2ed823c3d9c97852da4;hp=b44e514876d6e6798d0ab72e48404a806f866816;hpb=13b692eb4ee66fd0c7d4d45bdead750a4defa90e;p=libpicofe.git diff --git a/gp2x/menu.c b/gp2x/menu.c index b44e514..5221543 100644 --- a/gp2x/menu.c +++ b/gp2x/menu.c @@ -1483,28 +1483,6 @@ static void menu_loop_root(void) } } -void menu_darken_bg(void *dst, int pixels, int darker) -{ - unsigned int *screen = dst; - pixels /= 2; - if (darker) - { - while (pixels--) - { - unsigned int p = *screen; - *screen++ = ((p&0xf79ef79e)>>1) - ((p&0xc618c618)>>3); - } - } - else - { - while (pixels--) - { - unsigned int p = *screen; - *screen++ = (p&0xf79ef79e)>>1; - } - } -} - static void menu_prepare_bg(int use_game_bg) { if (use_game_bg) @@ -1535,7 +1513,7 @@ static void menu_gfx_prepare(void) } -void menu_loop(void) +void menu_loop_old(void) { in_set_blocking(1); menu_gfx_prepare();