[GRASS5] [miketh@brisbane.paradigmgeo.com: [winGRASS] More info on libW11]

Glynn Clements glynn.clements at virgin.net
Tue Sep 11 11:14:28 EDT 2001


Markus Neteler wrote:

> "X11/Xos.h" is not present (comes in via "includes.h", don't know what this
> one is used for - commented out)

Xos.h is meant as a portable way to get various system definitions. We
should probably try to do without it, and handle any portability
issues ourselves.

> These functions are missing at link time and from the headers:

> XAllocSizeHints
> XAllocWMHints
> XAllocClassHint
> XGetWMName
> XSetWMName

You can do without these if you define "X11R3".

> XSetWindowColormap

Used to switch between the "fixed" and "float" colour modes. Probably
only needed if using "float" mode on a paletted display.

> XFreeColormap

Only called for DirectColor visuals, which probably don't exist in
W11.

> BlackPixel
> WhitePixel

These are mainly used to set the default background and foreground,
and aren't too important. The way that they are used in
Get_w_{box,line}.c is bogus, and should probably be changed.

> ConnectionNumber

This is used by Get_Xevent(), which would need to be re-implemented.

> XGetGCValues

This is only called with a valuemask of GCForeground, so a substitute
would only actually need to retrieve the selected foreground colour
(according to the most recent call to XSetForeground

The remainder should be able to be replaced by stubs.

-- 
Glynn Clements <glynn.clements at virgin.net>



More information about the grass-windows mailing list