[fpc-pascal]Contributing to FPC.

Michael Van Canneyt michael.vancanneyt at wisa.be
Tue Sep 10 11:07:56 CEST 2002

On Tue, 10 Sep 2002, Aitor [ISO-8859-1] Santamaría wrote:

> >
> >
> >> My first idea for improvement is this:
> >> A recreation of the Graph unit using SDL. The current Linux version
> >> requires SVGAlib which is no-longer included with most distributions and
> >> requires root privelages. I have worked quite a bit with Daniel
> >> Moisette's
> >> SDL headers and I am convinced it is do-able though it will certainly
> >> not
> >> be a hundred percent compatible.
> >
> >
> > No? The current graph unit is quite flexible. It's almost completely
> > independent of the underlying system, it can even work if you only
> > implement putpixel(), getpixel() and mode detection/setting (though
> > quite slowly, as demonstrated by the current win32 graph unit). You
> > can override almost all procedures (they're all procvars) though and
> > in general, the more you override, the fast things become (most banked
> > VESA routines are quite fast). A graph unit based on SDL would be
> > really nice though, since it's available on many platforms.
> Under Linux, how does GRAPH unit do? Does it open XFree or the like?
> If the answer is NO, what happens if I start with a FrameBuffer device
> loaded, can I still draw things in such case?

The current Linux implementation uses libvga; It will not cooperate with
X as far as I know.
There is a ggigraph unit which uses GGI to decide whether it's running
under X or not, and uses libvga or an X-window accordingly.


More information about the fpc-pascal mailing list