unified menu wip and some reorganization for it

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@638 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2009-02-22 22:58:59 +00:00
parent 217d08bc39
commit 1fb0dd88aa
11 changed files with 487 additions and 115 deletions

View file

@ -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();