summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXPrivate.h
diff options
context:
space:
mode:
authorculler <culler@noemail.net>2017-11-15 02:42:00 (GMT)
committerculler <culler@noemail.net>2017-11-15 02:42:00 (GMT)
commit61a4f604ca2409cd9c2dc70741c51c4a493d9290 (patch)
tree6b0c6f68da08737c0c64c7c0e347f9149f0661e4 /macosx/tkMacOSXPrivate.h
parent8d7cbbd23683c3959e762c8afbc894efb2fa4077 (diff)
downloadtk-61a4f604ca2409cd9c2dc70741c51c4a493d9290.zip
tk-61a4f604ca2409cd9c2dc70741c51c4a493d9290.tar.gz
tk-61a4f604ca2409cd9c2dc70741c51c4a493d9290.tar.bz2
Make it possible to generate an NSImage with correct transparency from a
photoimage. Fixes transparency issues with iconphotos and images in menus. FossilOrigin-Name: eae41df2e01b92814e1c134fa3344f7563295c8cedc9f17c9e388eec81879066
Diffstat (limited to 'macosx/tkMacOSXPrivate.h')
-rw-r--r--macosx/tkMacOSXPrivate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/tkMacOSXPrivate.h b/macosx/tkMacOSXPrivate.h
index 972b74c..ee7d5b3 100644
--- a/macosx/tkMacOSXPrivate.h
+++ b/macosx/tkMacOSXPrivate.h
@@ -211,7 +211,8 @@ MODULE_SCOPE int TkGenerateButtonEventForXPointer(Window window);
MODULE_SCOPE EventModifiers TkMacOSXModifierState(void);
MODULE_SCOPE NSBitmapImageRep* TkMacOSXBitmapRepFromDrawableRect(Drawable drawable,
int x, int y, unsigned int width, unsigned int height);
-MODULE_SCOPE CGImageRef TkMacOSXCreateCGImageWithXImage(XImage *image);
+MODULE_SCOPE CGImageRef TkMacOSXCreateCGImageWithXImage(XImage *image,
+ int use_ximage_alpha);
MODULE_SCOPE void TkMacOSXDrawCGImage(Drawable d, GC gc, CGContextRef context,
CGImageRef image, unsigned long imageForeground,
unsigned long imageBackground, CGRect imageBounds,