diff options
author | culler <culler> | 2017-11-15 02:42:00 (GMT) |
---|---|---|
committer | culler <culler> | 2017-11-15 02:42:00 (GMT) |
commit | f8dee9a0228dd40bdbf2c5494772f4d49c1b3659 (patch) | |
tree | 6b0c6f68da08737c0c64c7c0e347f9149f0661e4 /xlib | |
parent | bc151889837903b15310b5b9fb9ad5837b4a8b89 (diff) | |
download | tk-f8dee9a0228dd40bdbf2c5494772f4d49c1b3659.zip tk-f8dee9a0228dd40bdbf2c5494772f4d49c1b3659.tar.gz tk-f8dee9a0228dd40bdbf2c5494772f4d49c1b3659.tar.bz2 |
Make it possible to generate an NSImage with correct transparency from a
photoimage. Fixes transparency issues with iconphotos and images in menus.
Diffstat (limited to 'xlib')
-rw-r--r-- | xlib/X11/Xlib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xlib/X11/Xlib.h b/xlib/X11/Xlib.h index 8d8ec68..b027e28 100644 --- a/xlib/X11/Xlib.h +++ b/xlib/X11/Xlib.h @@ -203,6 +203,9 @@ typedef struct { int class; /* class of screen (monochrome, etc.) */ #endif unsigned long red_mask, green_mask, blue_mask; /* mask values */ +#if defined(MAC_OSX_TK) + unsigned long alpha_mask; +#endif int bits_per_rgb; /* log base 2 of distinct color values */ int map_entries; /* color map entries */ } Visual; @@ -332,6 +335,7 @@ typedef struct _XImage { 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*/ + unsigned long alpha_mask; #endif struct funcs { /* image manipulation routines */ struct _XImage *(*create_image)(); |