[winGRASS] More info on libW11

Malcolm Blue mblue at nb.sympatico.ca
Thu Sep 20 13:04:55 EDT 2001


Mike,

I was working on this back in April/May but haven't had time to complete
porting.

The following defines should be added to xlib.h to resolve a number of the
problems you reported:

#define BlackPixel(dpy, scr) 	(((dpy)->screens[(scr)]).black_pixel)
#define WhitePixel(dpy, scr) 	(((dpy)->screens[(scr)]).white_pixel)
#define DefaultScreenOfDisplay(dpy)
(&((dpy)->screens[(dpy)->default_screen]))
#define DoesBackingStore(s)	((s)->backing_store)
#define DisplayString(dpy) 	((dpy)->display_name)
#define DisplayCells(dpy, scr) 	(DefaultVisual((dpy), (scr))->map_entries)
#define XAllocSizeHints()       ((XSizeHints *)G_malloc((size_t)
sizeof(XSizeHints)))
#define XAllocWMHints()       ((XWMHints *)G_malloc((size_t)
sizeof(XWMHints)))
#define XAllocClassHint()       ((XClassHint *)G_malloc((size_t)
sizeof(XClassHint)))


If I get a chance, I'll see if I can find any other hints about the changes
I made to the XDRIVER code.

HTH,

Malcolm

-----Original Message-----
From: wingrass-admin at grass.itc.it [mailto:wingrass-admin at grass.itc.it]On
Behalf Of Mike Thomas
Sent: Tuesday, September 11, 2001 2:49 AM
To: wingrass at grass.itc.it
Subject: [winGRASS] More info on libW11


Hi again.

I had a go at libW11 - got the source and built it - no worries.  Tried the
XDRIVER, but discovered some limitations:

-------------------
Graph_set.c:

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

"X11/cursorfont.h" is an empty (dummy) header so "XC_crosshair" and
"XC_watch" are missing - set to zero .

Same with "X11/Xutil.h" - "IconPixmapHint" - commented out.

-----------------------
Serve_Xevent.c:

O_WR/RD/ONLY not defined - added "#include <sys/fcntl.h>"


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

XAllocSizeHints
XAllocWMHints
XAllocClassHint
XSetWindowColormap
XFreeColormap
BlackPixel
WhitePixel
XUndefineCursor
XDisplayName
XSetBackground
ConnectionNumber
XGetGCValues
XGetWMName
XSetWMName
XNoOp


It looks as though this might turn out to be another viable option for the
Win32 port display device assuming functionality is OK.

Has anyone some suggestions on how best to work around these missing
functions?

Cheers

Mike Thomas.

_______________________________________________
winGRASS mailing list
winGRASS at grass.itc.it
http://grass.itc.it/mailman/listinfo/wingrass

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.265 / Virus Database: 137 - Release Date: 7/18/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001




More information about the grass-windows mailing list