diff options
Diffstat (limited to 'unix/tkUnixPort.h')
-rw-r--r-- | unix/tkUnixPort.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/unix/tkUnixPort.h b/unix/tkUnixPort.h index bc432e7..12010f4 100644 --- a/unix/tkUnixPort.h +++ b/unix/tkUnixPort.h @@ -137,6 +137,14 @@ desty, width, height); #endif + /* + * The TkPutImage macro strips off the color table information, which isn't + * needed for X. + */ + +# define TkPutImage(colors, ncolors, display, pixels, gc, image, srcx, srcy, destx, desty, width, height) \ + XPutImage(display, pixels, gc, image, srcx, srcy, destx, \ + desty, width, height); /* * Supply macros for seek offsets, if they're not already provided by @@ -185,6 +193,7 @@ * This macro stores a representation of the window handle in a string. * This should perhaps use the real size of an XID. */ + #ifndef __CYGWIN__ #define TkpPrintWindowId(buf,w) \ sprintf((buf), "%#08lx", (unsigned long) (w)) |