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)
commit657059c544043fca33be51d893ad79cdb8941e24 (patch)
tree2709070b1ea361c2ed7993c57f868eadb0a34720 /xlib/X11
parentd4873b4490f6cbad7f5ef9d2b622f8ac5a6eaf7b (diff)
downloadtk-657059c544043fca33be51d893ad79cdb8941e24.zip
tk-657059c544043fca33be51d893ad79cdb8941e24.tar.gz
tk-657059c544043fca33be51d893ad79cdb8941e24.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