home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
- From: ori@marvin.technion.ac.il (Ori Degani)
- Newsgroups: fj.mail-lists.x-window
- Subject: XGetRGBColormap
- Message-ID: <1992Dec31.110705.13813@sm.sony.co.jp>
- Date: 31 Dec 92 11:07:05 GMT
- Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
- Distribution: fj
- Organization: Heart of Gold Institute
- Lines: 33
- Approved: michael@sm.sony.co.jp
-
- Date: Thu, 31 Dec 1992 02:21:55 GMT
- Message-Id: <1992Dec31.022155.8911@discus.technion.ac.il>
- Newsgroups: comp.windows.x
- Sender: xpert-request@expo.lcs.mit.edu
-
- Yo,
- My application needs to display real pictures (digitized), so I'm
- using XGetRGBColormaps to get the best colormap for the system. The
- problem is that it giving me an error message for something I copied
- from the "Xlib Programming Manual X11R4":
-
- Page 225: /XGetRGB/
- if (XGetRGBColoraps (dpy, win, &best_map_info, &no_of_cmaps,
- XA_RGB_BEST_MAP) == 0) {
- fprintf (stderr, "Error:\n");
- exit(1);
- }
-
- Well the error it produces is (I'm using gcc if thats any help)
- makeImage.c:97: warning: passing arg 3 of `XGetRGBColormaps' from incompatible pointer type
-
- arg 3 is best_map_info, which is declared as:
- (same as page 224)
- XStandardColormap best_map_info;
-
- So what's the problem? Am I wrong? Is the book wrong? (Neither?)
-
- Ori
- --
- | ---- Ori Degani
- | |___ ori@eddie.technion.ac.il (Ship Computer on the HOG)
- | | ori@marvin.technion.ac.il (Who else)
- | ---- s2973229@techst02.technion.ac.il (Ech..)
-