diff options
author | Kevin Walzer <kw@codebykevin.com> | 2016-07-15 10:47:18 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2016-07-15 10:47:18 (GMT) |
commit | 2ae13e10ac2c3c86584cece38298da049533e803 (patch) | |
tree | 2709070b1ea361c2ed7993c57f868eadb0a34720 /xlib | |
parent | c32ea9203392ec7c24b873842e0d0d84b66830cc (diff) | |
download | tk-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')
-rw-r--r-- | xlib/X11/Xlib.h | 3 |
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 |