[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
portrait mode video
From: "Kyle Harris" ####@####.#### Date: 11 Aug 1999 19:00:13 -0000 Message-Id: <001601bee2fe$03f65b40$344d4d0a@brdc01> Can anyone tell me what would be required to drive the video in portrait mode using either bogl or svgalib with nanoX or mwin? Thanks, Kyle Harris ####@####.#### 828-669-9746 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: portrait mode video
From: Alan Cox ####@####.#### Date: 11 Aug 1999 19:13:45 -0000 Message-Id: <E11Edkq-0004WH-00@the-village.bc.nu> > Can anyone tell me what would be required to drive the video in portrait = > mode using either bogl or svgalib with nanoX or mwin?=20 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 Alan | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |