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. -- 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