random minor fixes

git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@843 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2009-12-18 15:29:59 +00:00
parent d2f29611d1
commit 114dfebdbd
3 changed files with 5 additions and 4 deletions

View file

@ -767,8 +767,8 @@ static void draw_dirlist(char *curdir, struct dirent **namelist, int n, int sel)
// if (!rom_loaded) // if (!rom_loaded)
// menu_darken_bg(gp2x_screen, 320*240, 0); // menu_darken_bg(gp2x_screen, 320*240, 0);
darken_ptr = (short *)g_screen_ptr + g_screen_width * max_cnt/2 * 10; darken_ptr = (short *)g_screen_ptr + g_screen_width * max_cnt/2 * me_sfont_h;
menu_darken_bg(darken_ptr, darken_ptr, g_screen_width * 8, 0); menu_darken_bg(darken_ptr, darken_ptr, g_screen_width * me_sfont_h * 8 / 10, 0);
x = 5 + me_mfont_w + 1; x = 5 + me_mfont_w + 1;
if (start - 2 >= 0) if (start - 2 >= 0)
@ -1485,6 +1485,7 @@ static menu_entry e_menu_32x_options[] =
{ {
mee_onoff("32X enabled", MA_32XOPT_ENABLE_32X, PicoOpt, POPT_EN_32X), mee_onoff("32X enabled", MA_32XOPT_ENABLE_32X, PicoOpt, POPT_EN_32X),
mee_onoff("PWM sound", MA_32XOPT_PWM, PicoOpt, POPT_EN_PWM), mee_onoff("PWM sound", MA_32XOPT_PWM, PicoOpt, POPT_EN_PWM),
mee_end,
}; };
static int menu_loop_32x_options(menu_id id, int keys) static int menu_loop_32x_options(menu_id id, int keys)

View file

@ -138,7 +138,7 @@ void plat_init(void)
gp2x_memset_all_buffers(0, 0, 320*240*2); gp2x_memset_all_buffers(0, 0, 320*240*2);
// use buffer2 for menubg (using only buffers 0, 1 in menu) // use buffer2 for menubg to save mem (using only buffers 0, 1 in menu)
g_menubg_ptr = gp2x_screens[2]; g_menubg_ptr = gp2x_screens[2];
// snd // snd

View file

@ -51,7 +51,7 @@ int sndout_oss_start(int rate, int frame_samples, int stereo)
} }
} }
// calculate buffer size. We one to fit 1 frame worth of sound data. // calculate buffer size. We want to fit 1 frame worth of sound data.
// Also ignore mono because both GP2X and Wiz mixes mono to stereo anyway. // Also ignore mono because both GP2X and Wiz mixes mono to stereo anyway.
bsize = frame_samples << 2; bsize = frame_samples << 2;