X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2Fgp2x.c;h=eeefcf68390efeb8255e600f968cdfbfeef2954a;hb=5cc8854bc94b22e52d747e67cc9b7ca310711181;hp=2107e61f1678635f30775d10b17ef4397bfa6a67;hpb=638cc6264cf3e8d1f046885fb68b5a1e22729d06;p=gpsp.git diff --git a/gp2x/gp2x.c b/gp2x/gp2x.c index 2107e61..eeefcf6 100644 --- a/gp2x/gp2x.c +++ b/gp2x/gp2x.c @@ -41,11 +41,11 @@ static volatile u32 *gpsp_gp2x_memregl; #ifdef WIZ_BUILD #include void *gpsp_gp2x_screen; -static u32 fb_paddr[3]; -static void *fb_vaddr[3]; +#define fb_buf_count 4 +static u32 fb_paddr[fb_buf_count]; +static void *fb_vaddr[fb_buf_count]; static u32 fb_work_buf; -const int fb_buf_count = 3; -static int fb_buf_use = 3; +static int fb_buf_use; static void fb_video_init() { @@ -111,6 +111,7 @@ void fb_use_buffers(int count) else if (count > fb_buf_count) count = fb_buf_count; fb_buf_use = count; + memset(fb_vaddr[0], 0, 320*240*2*count); } static void fb_video_exit()