From 205bc4565ca1db7e2983f8fae2daa28a9a20d3cf Mon Sep 17 00:00:00 2001 From: notaz Date: Fri, 18 Dec 2009 15:29:59 +0000 Subject: [PATCH] random minor fixes git-svn-id: file:///home/notaz/opt/svn/PicoDrive@843 be3aeb3a-fb24-0410-a615-afba39da0efa --- pico/draw.c | 1 + platform/common/menu.c | 5 +++-- platform/gp2x/plat.c | 2 +- platform/linux/sndout_oss.c | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pico/draw.c b/pico/draw.c index c432bd57..712e8610 100644 --- a/pico/draw.c +++ b/pico/draw.c @@ -1527,6 +1527,7 @@ void PicoDrawSetColorFormat(int which) default:FinalizeLine = NULL; break; } PicoDrawSetColorFormatMode4(which); + rendstatus_old = -1; #if OVERRIDE_HIGHCOL if (which) HighCol=DefHighCol; diff --git a/platform/common/menu.c b/platform/common/menu.c index c9fc188a..73b41da6 100644 --- a/platform/common/menu.c +++ b/platform/common/menu.c @@ -767,8 +767,8 @@ static void draw_dirlist(char *curdir, struct dirent **namelist, int n, int sel) // if (!rom_loaded) // menu_darken_bg(gp2x_screen, 320*240, 0); - darken_ptr = (short *)g_screen_ptr + g_screen_width * max_cnt/2 * 10; - menu_darken_bg(darken_ptr, darken_ptr, g_screen_width * 8, 0); + 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 * me_sfont_h * 8 / 10, 0); x = 5 + me_mfont_w + 1; 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("PWM sound", MA_32XOPT_PWM, PicoOpt, POPT_EN_PWM), + mee_end, }; static int menu_loop_32x_options(menu_id id, int keys) diff --git a/platform/gp2x/plat.c b/platform/gp2x/plat.c index 0e207bf5..d1e6d809 100644 --- a/platform/gp2x/plat.c +++ b/platform/gp2x/plat.c @@ -138,7 +138,7 @@ void plat_init(void) 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]; // snd diff --git a/platform/linux/sndout_oss.c b/platform/linux/sndout_oss.c index f74e706d..4d8e58b8 100644 --- a/platform/linux/sndout_oss.c +++ b/platform/linux/sndout_oss.c @@ -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. bsize = frame_samples << 2; -- 2.39.5