nanogui: Microwindows for Hercules


Previous by date: 18 Jul 1999 14:26:14 -0000 Re: Microwindows for Hercules, Greg Haerr
Next by date: 18 Jul 1999 14:26:14 -0000 Re: ELKS v0.78 bugs fixed, Alistair Riddoch
Previous in thread: 18 Jul 1999 14:26:14 -0000 Re: Microwindows for Hercules, Greg Haerr
Next in thread: 18 Jul 1999 14:26:14 -0000 Re: Microwindows for Hercules, Greg Haerr

Subject: Re: Microwindows for Hercules
From: Alan Cox ####@####.####
Date: 18 Jul 1999 14:26:14 -0000
Message-Id: <E115rki-0006Q7-00@the-village.bc.nu>

> 	No need.  MicroWindows handles the Bresenham algorithm in the mid
> level code in devdraw.c.  It uses successive calls to drawpixel to make it work.
> In this way, people like you and me don't have to rewrite bresenham for every
> card someone wants....

The code in devdraw.c is very naiive. It assumes pixel plotting is the underlyin
op. On many cards line slices are the underlying operation, horizontal or
vertical. What you probably want to do is generate a series of

	draw_horizontal(x,y,l)

or
	draw_vertical(x,y,l)

calls for most things

> This might be useful when bitblt is implemented though...

Having 32K of offscreen memory is always useful. 

Alan


Previous by date: 18 Jul 1999 14:26:14 -0000 Re: Microwindows for Hercules, Greg Haerr
Next by date: 18 Jul 1999 14:26:14 -0000 Re: ELKS v0.78 bugs fixed, Alistair Riddoch
Previous in thread: 18 Jul 1999 14:26:14 -0000 Re: Microwindows for Hercules, Greg Haerr
Next in thread: 18 Jul 1999 14:26:14 -0000 Re: Microwindows for Hercules, Greg Haerr


Powered by ezmlm-browse 0.20.