Hi all ~
I am porting gray-scale 4 bpp LCD driver .
i used fbcon_cfb4 in my driver, but i found each character are reversed.
it is right& lift reverse, not up and down reverse .
which part of source should i modified to reverse each character.
Thank you !
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
On Mon, 2003-03-10 at 23:04, irene7 wrote:
Hi all ~
I am porting gray-scale 4 bpp LCD driver .
i used fbcon_cfb4 in my driver, but i found each character are reversed.
it is right& lift reverse, not up and down reverse .
which part of source should i modified to reverse each character.
Is the reversal per character, or is the whole display totally
reversed?
Case 1 is easy to fix, it's just an endian problem. All character
bitmaps are big-endian, so you need to convert them to little-endian
before writing to the framebuffer. Look at the code of rivafb,
especially the byte_rev part. You can employ something similar.
For the second case, this will be similar to the one I mentioned to you
before. You have to modify fbcon-cfb4 so it rasters right->left instead
of left->right.
Tony
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en