qemu-arm's framebuffer only support BGR16 format.. though PL110 graphics controller support both bgr/rgb
lots of places in the source code need to be changed... all that what the "patch" from http://mail.directfb.org/pipermail/directfb-dev/2006-October/002364.html does was to "force" the source code into RGB16 mode for the screwed color output, (better than no output at all isn't it?) if you want the correct output you should modify the source code to add the 29th pixelformat in the source code, as what has been done to support bgr24 a few days back urh.... Regards, Wenqi Chen On 21/02/2008, Denis Oliver Kropp <[EMAIL PROTECTED]> wrote: > Davide Viti wrote: > > On Thu, Feb 21, 2008 at 11:02:35AM +0100, Denis Oliver Kropp wrote: > >> Song Yuan wrote: > >>> Hi, > >>> > >>> I've got quite interesting problem regarding the color rendering of > >>> Gtk-DFB application in Qemu's ARM emulator (qemu-system-arm). > >>> > >>> I've cross-compiled Linux/DirectFB/Cairo/Gtk+ in scratchbox. Gtk+ is > >>> using its DirectFB backend. I applied the patch to DirectFB mentioned > >>> here at > http://mail.directfb.org/pipermail/directfb-dev/2006-October/002364.html. > >>> This is due a bug in Qemu ARM's LCD emulation. > >>> > >>> Then I run that stack from Qemu's ARM emulator. Nearly all the > >>> DirectFB applications can run with no problems, including df_andi, > >>> df_input, etc. But Gtk+ application have strange behaviors while > >>> rendering the color. The blue image (I've tried different formats like > >>> jpg, png and gif) is displayed as yellow. However, if I define a blue > >>> color manually: "color.red=0; color.blue=65535; color.green=0;", it's > >>> displayed as red. > >>> > >>> I haven't figured out why yet, but it seems to be caused by the patch > >>> to DirectFB mentioned above. That RGB format problem is still better > >>> to be solved in Linux framebuffer driver instead. I'll really > >>> appreciate if anyone has better idea, thank you :-) > >> That's true, qemu should do RGB, but it seems like BGR. > >> > >> I haven't looked at the patch, but most likely it hacks DirectFB's RGB > >> support while GTK+ still assumes the correct format. > >> > > > > could it have anything to do with this? > > > > http://www.mail-archive.com/[EMAIL PROTECTED]/msg81440.html > > > Yes, sounds like the same issue. > > I also saw the wrong colors on free-electrons' DirectFB demo. > > http://free-electrons.com/community/demos/qemu-arm-directfb/ > > > -- > Best regards, > Denis Oliver Kropp > > .------------------------------------------. > | DirectFB - Hardware accelerated graphics | > | http://www.directfb.org/ | > "------------------------------------------" > > _______________________________________________ > directfb-dev mailing list > directfb-dev@directfb.org > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev > -- WC _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev