Path: utzoo!mnetor!uunet!husc6!ncar!ames!pasteur!ucbvax!webster.UUCP!jef From: jef@webster.UUCP (Jef Poskanzer) Newsgroups: comp.windows.x Subject: xwd file format Message-ID: <8803270235.AA16830@webster.sybase.uucp> Date: 27 Mar 88 02:35:13 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 15 I've been looking at the format of the bitmap files produced by xwd. The header is described in XWDFile.h, and it's all nice and machine- independent. But if you look at xwd.c, you will find that it writes out XColor structs directly. This doesn't seem very portable -- the actual size of this struct could vary from compiler to compiler. Since xwd goes to great lengths to be machine-independent, this seems weird. Can someone who knows more about it than I do comment on whether the XColors should be translated to 32-bit xwdvals before they are written out? Naturally this would mean bumping the XWD_FILE_VERSION. --- Jef Jef Poskanzer pacbell!sybase!jef@Sun.Com jef@lbl-rtsg.ARPA