summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixPort.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-01 07:29:44 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-01 07:29:44 (GMT)
commit6382e7ec7834e0f919f4e6082f6a97ad31ed9126 (patch)
tree484ba0424611e0c71e26e80a7d5cd1ade9036fff /unix/tkUnixPort.h
parent6688856e9fd37e6fde96819bf86f401a756d03ae (diff)
downloadtk-6382e7ec7834e0f919f4e6082f6a97ad31ed9126.zip
tk-6382e7ec7834e0f919f4e6082f6a97ad31ed9126.tar.gz
tk-6382e7ec7834e0f919f4e6082f6a97ad31ed9126.tar.bz2
unbreak Linux build
Diffstat (limited to 'unix/tkUnixPort.h')
-rw-r--r--unix/tkUnixPort.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/unix/tkUnixPort.h b/unix/tkUnixPort.h
index 93422cf..8118d95 100644
--- a/unix/tkUnixPort.h
+++ b/unix/tkUnixPort.h
@@ -126,6 +126,15 @@
# define WPARAM void *
# define LPARAM void *
# define LRESULT void *
+#else
+/*
+ * 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);
#endif
/*