AndrewFromMelbourne / raspi2fb

Program to copy the Raspberry Pi display to a secondary framebuffer.
MIT License
94 stars 27 forks source link

Colors inverted on fb #6

Open BaukeBlom opened 6 years ago

BaukeBlom commented 6 years ago

Hi there,

First of all thanks! This works so much better than fbcp, I have zero delays/lag. I know its been a while since you've worked on this, but maybe you'll be able to help? I'm using a Robopeak USB Display and want to run EmulationStation which brought me to use raspi2fb. Everything works great except that the red and blue colors are swapped on fb, but not on HDMI. I've been looking online and tried some things, without success. framebuffer_swap=1 for example didn't do anything. Got any idea on what I can try?

-BB

AndrewFromMelbourne commented 6 years ago

Hi @BaukeBlom. Sorry for the delay in replying. I don't have any suggestions. The program really assumes that the display will have the same byte order. It would be possible to swap the byte order in the code. If I get some time I will give it a try.

BaukeBlom commented 6 years ago

Awesome! Thank you so much!

leragequit commented 4 years ago

if this is still relevant: framebuffer_swap=1 is the default. if you have an issue with BGRA colorspace set it to framebuffer_swap=0

br