summaryrefslogtreecommitdiffstats
path: root/xlib
diff options
context:
space:
mode:
authorkevin_walzer <kevin_walzer@noemail.net>2016-07-15 10:46:56 (GMT)
committerkevin_walzer <kevin_walzer@noemail.net>2016-07-15 10:46:56 (GMT)
commit244a59b9de2f1b0897341ba87dede755023a00ee (patch)
tree5136088d70a7fe010e59b99288f068d4770107b6 /xlib
parent25d6f6bdea6ea060f778ad76c3b6861453a5f276 (diff)
downloadtk-244a59b9de2f1b0897341ba87dede755023a00ee.zip
tk-244a59b9de2f1b0897341ba87dede755023a00ee.tar.gz
tk-244a59b9de2f1b0897341ba87dede755023a00ee.tar.bz2
Fix for image/alpha rendering under hidpi/Retina displays on Mac OS; thanks to Marc Culler for assistance
FossilOrigin-Name: c6301aba29addea1c9f7850a994ba6da463e8402
Diffstat (limited to 'xlib')
-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