summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-05-31 04:53:04 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-05-31 04:53:04 (GMT)
commita2b7afd83359a8b5149462e93b174ca5784d1e1a (patch)
tree0d86ddd173e57154f68d6c3505b9ceaa39a54676 /unix
parentda68cb938e2bec4280883c4052906b9811aadf7c (diff)
parent91ae12c773a03fe4533d19a6d115deb6a4c95351 (diff)
downloadtk-a2b7afd83359a8b5149462e93b174ca5784d1e1a.zip
tk-a2b7afd83359a8b5149462e93b174ca5784d1e1a.tar.gz
tk-a2b7afd83359a8b5149462e93b174ca5784d1e1a.tar.bz2
Simpify determination whether we are running on cygwin.
Export Tk_GetHINSTANCE, TkSetPixmapColormap and TkpPrintWindowId on the Cygwin dll
Diffstat (limited to 'unix')
-rw-r--r--unix/tkUnixPort.h9
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))