summaryrefslogtreecommitdiffstats
path: root/xlib/X11
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2016-07-15 10:47:18 (GMT)
committerKevin Walzer <kw@codebykevin.com>2016-07-15 10:47:18 (GMT)
commit2ae13e10ac2c3c86584cece38298da049533e803 (patch)
tree2709070b1ea361c2ed7993c57f868eadb0a34720 /xlib/X11
parentc32ea9203392ec7c24b873842e0d0d84b66830cc (diff)
downloadtk-2ae13e10ac2c3c86584cece38298da049533e803.zip
tk-2ae13e10ac2c3c86584cece38298da049533e803.tar.gz
tk-2ae13e10ac2c3c86584cece38298da049533e803.tar.bz2
Fix for image/alpha rendering under hidpi/Retina displays on Mac OS; thanks to Marc Culler for assistance
Diffstat (limited to 'xlib/X11')
-rw-r--r--xlib/X11/Xlib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlib/X11/Xlib.h b/xlib/X11/Xlib.h
index 667bdc7..8d8ec68 100644
--- a/xlib/X11/Xlib.h
+++ b/xlib/X11/Xlib.h
@@ -330,6 +330,9 @@ typedef struct _XImage {
unsigned long green_mask;
unsigned long blue_mask;
XPointer obdata; /* hook for the object routines to hang on */
+#if defined(MAC_OSX_TK)
+ int pixelpower; /* n such that pixels are 2^n x 2^n blocks*/
+#endif
struct funcs { /* image manipulation routines */
struct _XImage *(*create_image)();
#if NeedFunctionPrototypes