linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Antonino Daplas <adaplas@pol.net>
To: irene7@mail2000.com.tw
Cc: Linux Fbdev development list <linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: each character are reverse (fbcon_cfb4)
Date: 12 Mar 2003 06:14:03 +0800	[thread overview]
Message-ID: <1047420837.1128.70.camel@localhost.localdomain> (raw)
In-Reply-To: <1047308678.13618.irene7@mail2000.com.tw>

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

      reply	other threads:[~2003-03-11 22:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-10 15:04 each character are reverse (fbcon_cfb4) irene7
2003-03-11 22:14 ` Antonino Daplas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1047420837.1128.70.camel@localhost.localdomain \
    --to=adaplas@pol.net \
    --cc=irene7@mail2000.com.tw \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).