diff options
author | Kevin Walzer <kw@codebykevin.com> | 2016-07-15 10:46:56 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2016-07-15 10:46:56 (GMT) |
commit | dd3deac9990a92730e998c6ae282fe02cde5a700 (patch) | |
tree | 5136088d70a7fe010e59b99288f068d4770107b6 /xlib | |
parent | 96e1dfb2816cd8f2790d1a533b7065735fd3c7bf (diff) | |
download | tk-dd3deac9990a92730e998c6ae282fe02cde5a700.zip tk-dd3deac9990a92730e998c6ae282fe02cde5a700.tar.gz tk-dd3deac9990a92730e998c6ae282fe02cde5a700.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 |