linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* each character are reverse (fbcon_cfb4)
@ 2003-03-10 15:04 irene7
  2003-03-11 22:14 ` Antonino Daplas
  0 siblings, 1 reply; 2+ messages in thread
From: irene7 @ 2003-03-10 15:04 UTC (permalink / raw)
  To: linux-fbdev-devel


 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: each character are reverse (fbcon_cfb4)
  2003-03-10 15:04 each character are reverse (fbcon_cfb4) irene7
@ 2003-03-11 22:14 ` Antonino Daplas
  0 siblings, 0 replies; 2+ messages in thread
From: Antonino Daplas @ 2003-03-11 22:14 UTC (permalink / raw)
  To: irene7; +Cc: Linux Fbdev development list

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-11 22:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-10 15:04 each character are reverse (fbcon_cfb4) irene7
2003-03-11 22:14 ` Antonino Daplas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).