PDA

View Full Version : Switch blue and red



bryan
11th November 2009, 23:27
Hi,

I am running on a blackfin platform with uClinux and I can't modify the color offsets of my framebuffer driver.
Is it possible to switch the Qt red and blue in overloading a Qscreen functions or in editing the library sources?

Thank,

Bryan DE FARIA

plambert
19th January 2010, 04:21
Hi,

Did you manage to find a solution ?. I'm making a device that needs to rotate the screen. When I use the transform sub driver and rotate the sccreen by 90 degrees, red and blue get swapped.

I'll post the solution here when (if) I find it.

Cheers,
Peter

bryan
19th January 2010, 15:23
Hi Peters,

My problem was a bit different. I had to modify the setPixelFormat method in the qscreenlinuxfb_qws class.
In your case you may have to take a look to the qscreentransformed_qws.cpp in the gui/embedded sources.

Regards,
Bryan