linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Antonino Daplas <adaplas@pol.net>
To: Linux Fbdev development list <linux-fbdev-devel@lists.sourceforge.net>
Cc: Linux Kernel List <linux-kernel@vger.kernel.org>
Subject: [PATCH][FBDEV]: generic fb console rotation infrastructure
Date: 05 Feb 2003 16:38:15 +0800	[thread overview]
Message-ID: <1044434293.1170.59.camel@localhost.localdomain> (raw)

Hi James,

I decided to add the Console rotation patch which I submitted before to
linux-2.5.59.  The orientation of the display is determined by the
valued of display.rotate, and the appropriate drawing functions in
display.dispsw.  If the display is rotated, fontdata will be prerotated,
and the appropriate console window dimenstions are swapped if necessary.

Currently, this is just an implementation and no hooks are provided yet
to enable/disable this.  This will require some coordination between the
console layer and fbdev.

Current limitations:

1.  cannot support a fontwidth not a multiple of 8 if rotated 180
degrees, and a fontheight not a multiple of 8 if rotated by 90 degrees. 
This is a limitation with fb_imageblit which has no support for bitmap
clipping.

2.  code for panning when rotated by 90 degrees is still buggy, so it's
disabled.

3.  minor graphics glitches.

4.  no support for hardware based rotation, but this should be easy to
add

You can test this by defining DEBUG_ROTATE in the following code
snippet:

#undef DEBUG_ROTATE
#ifdef DEBUG_ROTATE
	/*
	 * change to the appropriate orientation and 
	 * drawing function to test for rotation
	 */
	p->dispsw = &fbcon_180_dispsw;
	p->rotate = FB_VMODE_ROTATE_180
	if (p->rotate) 
		fbcon_rotate_fontdata(p->rotate, p); 
#endif

I've tested the code with several drivers including vga16fb and vesafb.

The patch is at
http://i810fb.sourceforge.net/linux-2.5.59-rotate.diff.gz


Any comments welcome.

Tony

                 reply	other threads:[~2003-02-05  8:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1044434293.1170.59.camel@localhost.localdomain \
    --to=adaplas@pol.net \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    /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).