summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXDialog.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2017-10-12 12:30:30 (GMT)
committerKevin Walzer <kw@codebykevin.com>2017-10-12 12:30:30 (GMT)
commitc2a813ae1dca8c52c8a436702e8e0b3c6d03a700 (patch)
treef3d7ea42577a9427824b0f6443b5759ee663acfd /macosx/tkMacOSXDialog.c
parent2b0ca907279d39d6a0110b491c98d0cb8201aeff (diff)
downloadtk-c2a813ae1dca8c52c8a436702e8e0b3c6d03a700.zip
tk-c2a813ae1dca8c52c8a436702e8e0b3c6d03a700.tar.gz
tk-c2a813ae1dca8c52c8a436702e8e0b3c6d03a700.tar.bz2
Fix for colorspace issues and regression in drawing on macOS; thanks to Marc Culler for patches
Diffstat (limited to 'macosx/tkMacOSXDialog.c')
-rw-r--r--macosx/tkMacOSXDialog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXDialog.c b/macosx/tkMacOSXDialog.c
index 9fc3057..3bcbf1f 100644
--- a/macosx/tkMacOSXDialog.c
+++ b/macosx/tkMacOSXDialog.c
@@ -375,7 +375,7 @@ Tk_ChooseColorObjCmd(
returnCode = [NSApp runModalForWindow:colorPanel];
if (returnCode == modalOK) {
color = [[colorPanel color] colorUsingColorSpace:
- [NSColorSpace genericRGBColorSpace]];
+ [NSColorSpace deviceRGBColorSpace]];
numberOfComponents = [color numberOfComponents];
}
if (color && numberOfComponents >= 3 && numberOfComponents <= 4) {