Nils Magnus Larsgard wrote:
> Hi,
> 
> As I am starting to make some example programs with dfb for AVR32, I get
> some strange colors in my images and rectangles. It seems like the RGB
> has become BGR, and the colors looks strange.
> 
> For instance, the df_andi example program: tux's "schnabel" becomes
> light blue. The color looks exactly the same as when I swap the R and B
> values in a yellow RGB color. The correct color value is 0xe6ca6a, but
> the shown value is 0x6acae6. I have the same problem when I call
> setcolor(thiz,r,g,b,a).
> 
> Could this have anything to do with endianness on my architecture(big
> endian)? Is there a configure option I could switch to make things
> right? 

Endianness shouldn't make a difference for filling in 32 bit mode.

Maybe your display controller is configured to read the data as BGR.

-- 
Best regards,
   Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to