From: notaz Date: Fri, 18 Dec 2009 15:29:59 +0000 (+0000) Subject: random minor fixes X-Git-Tag: v1.85~209 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=picodrive.git;a=commitdiff_plain;h=205bc4565ca1db7e2983f8fae2daa28a9a20d3cf random minor fixes git-svn-id: file:///home/notaz/opt/svn/PicoDrive@843 be3aeb3a-fb24-0410-a615-afba39da0efa --- diff --git a/pico/draw.c b/pico/draw.c index c432bd5..712e861 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 c9fc188..73b41da 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 0e207bf..d1e6d80 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 f74e706..4d8e58b 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;