nanogui: Microwindows for Hercules
Subject:
Re: Microwindows for Hercules
From:
Jakob Eriksson ####@####.####
Date:
15 Jul 1999 21:27:13 -0000
Message-Id: <Pine.GSO.3.95.990715231948.8973A-100000@bilbo.mdh.se>
On Thu, 15 Jul 1999, Perry Harrington wrote:
> Why not take the approach that Linux takes with the module:
>
> Create the driver structure, have the primitives referenced in the
> driver structure. If the driver doesn't implement a primitive, set
> the structure member to NULL, and the driver loader will take care
> to use the builtin function. EG:
>
> struct driver {
> ptr_t hline
> ptr_t vline
> ptr_t bline
> ...
> } DRIVER;
>
> struct driver herc_card[]={
> herc_hline,
> herc_vline,
> NULL
> };
>
> That way you can have driver optimized primitives or rely on the default,
> which just calls write_pixel.
sounds good.
how much would it take to change/add microwin?
Jakob