diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-05-31 04:53:04 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-05-31 04:53:04 (GMT) |
commit | 6b4e47160ccd1658a60fc16d05f26be5befb6de1 (patch) | |
tree | 0d86ddd173e57154f68d6c3505b9ceaa39a54676 /unix/tkUnixPort.h | |
parent | 728fe9ac308f864a0cdfa074a7e548a114f80d4d (diff) | |
parent | 3f0541ae5dbacb552186ca434da000dc3947c731 (diff) | |
download | tk-6b4e47160ccd1658a60fc16d05f26be5befb6de1.zip tk-6b4e47160ccd1658a60fc16d05f26be5befb6de1.tar.gz tk-6b4e47160ccd1658a60fc16d05f26be5befb6de1.tar.bz2 |
Simpify determination whether we are running on cygwin.
Export Tk_GetHINSTANCE, TkSetPixmapColormap and TkpPrintWindowId on the Cygwin dll
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)) |