[oe-commits] [Bug 5407] at91sam9261ek colors swapped

bugzilla-daemon at git.openembedded.org bugzilla-daemon at git.openembedded.org
Fri Apr 23 18:03:11 UTC 2010


http://bugs.openembedded.org/show_bug.cgi?id=5407





--- Comment #1 from NB <quickx at hotmail.com>  2010-04-23 18:03:10 ---
We were able to solve the problem by editing the matchbox-desktop source.  The
spectrum image only affected the RGB565 cpu, by default 9261 uses BGR555.

However with 9261 the background is still red even though the background
selector (look and feel) correctly shows blue, and all other applications *like
picture viewer* are correct.

We fixed it by editing the matchbox-desktop 1.9.1 source file
"mbdeskstop_view.c" like follows:

::Original::
::Function:: mbdesktop_view_init_bg(MBDesktop *mb)
...
    case BG_SOLID:
...
      mb_pixbuf_img_fill(mb->pixbuf, mb->bg_img, 
             mb->bg->data.cols[0], 
             mb->bg->data.cols[1],
             mb->bg->data.cols[2], 
             0);
...

::Edited Part::
   if(CPU == 9261)
      mb_pixbuf_img_fill(mb->pixbuf, mb->bg_img, 
             mb->bg->data.cols[0], 
             mb->bg->data.cols[1],
             mb->bg->data.cols[2], 
             0);
   else
      mb_pixbuf_img_fill(mb->pixbuf, mb->bg_img, 
             mb->bg->data.cols[2], 
             mb->bg->data.cols[1],
             mb->bg->data.cols[0], 
             0);


The case statment "if(CPU != 9261)" would need to change to a proper
"if(BGR)...else(RGB)..." type thing, but, I'm unsure how to get that data at
runtime and at the application level.

I hope it helps someone, or maybe helps someone make a proper generic OE patch
for matchbox-desktop 1.9.1 for different OE boards.  Thanks.

-- 
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.




More information about the Openembedded-commits mailing list