From: p2 <p2...@mi...> - 2003-04-20 13:12:26
|
On Sun, Apr 20, 2003 at 02:29:24PM +0200, VINCENT C?dric wrote: > On Sunday 20 April 2003 14:42, p2 wrote: > > The bad background color might be due to byte accesses to the framebuffer. > > The DC framebuffer hw only allows 16 or 32 bit accesses iirc. > > Thank you very much ! > > But I'm not sure to understand... : > I launch 'fbset -depth 16' before launching Links2.1-pre7... so I'm on 16 > bits... Yes. The DC fb is configured to 16bit. The problem is how you access the framebuffer. You should use a 16 or 32bit access, so you should either use a int * or a short * in C to write something to the display, never use a char *. > What is iirc ?!? if I remember correctly. > Why are pictures perfectly displayed and not the background ? > I guess the code for displaying the background is different from the code displaying the pictures. I don't know the links internals. Thanks, p2. |