nanogui: portrait mode video


Previous by date: 11 Aug 1999 19:35:14 -0000 Re: portrait mode video, Alan Cox
Next by date: 11 Aug 1999 19:35:14 -0000 Re: nterm source code., Greg Haerr
Previous in thread: 11 Aug 1999 19:35:14 -0000 Re: portrait mode video, Alan Cox
Next in thread:

Subject: RE: portrait mode video
From: Greg Haerr ####@####.####
Date: 11 Aug 1999 19:35:14 -0000
Message-Id: <01BEE3FF.B651EAA0.greg@censoft.com>

: Write a version of a frame buffer where hline and vline are exchanged, the
: box draws the other way and the pixel plot is inverted. Oh and flip the mouse
: around
:
	Yeah, so choose scr_bogl.c, the bogl frame buffer driver, for instance.

The driver will report 480x640 rather than 640x480 rows and cols.

Then, have incoming calls to drawhline(0..639) call bogl_vline(639, 0) instead.
You might have to swap the x1,x2/y1,y2 values for the lower level line draw to work.

The mouse cursor is drawn completely in software by microwindows, so, the mouse
driver will still think it's running the old way, but you'll tell the software mid-level
mouse driver (drvmouse.c) to do the 90 degree rotate in a fashion similar to 
the above.

What I can't decide is whether during development you should have your monitor
on it's side or not ;-)

Greg


Previous by date: 11 Aug 1999 19:35:14 -0000 Re: portrait mode video, Alan Cox
Next by date: 11 Aug 1999 19:35:14 -0000 Re: nterm source code., Greg Haerr
Previous in thread: 11 Aug 1999 19:35:14 -0000 Re: portrait mode video, Alan Cox
Next in thread:


Powered by ezmlm-browse 0.20.