diff options
author | Kevin Walzer <kw@codebykevin.com> | 2015-11-25 03:19:19 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2015-11-25 03:19:19 (GMT) |
commit | d787f0f93dde74085b6cb551d14803a2dba5edba (patch) | |
tree | 675f04c49d176dbe08d0c67bcb1757316f1ad1a9 /generic | |
parent | 90d1cab42008d1e0b9986f57cddd6e6307c9b8c4 (diff) | |
download | tk-d787f0f93dde74085b6cb551d14803a2dba5edba.zip tk-d787f0f93dde74085b6cb551d14803a2dba5edba.tar.gz tk-d787f0f93dde74085b6cb551d14803a2dba5edba.tar.bz2 |
Remove multiple deprecated internal API calls on OS X; streamline Apple Events implementation; thanks to Marc Culler for extensive patches
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkImgPhoto.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c index 780b0c2..47aa523 100644 --- a/generic/tkImgPhoto.c +++ b/generic/tkImgPhoto.c @@ -2454,7 +2454,11 @@ ImgPhotoGet( } XFree((char *) visInfoPtr); - sprintf(buf, ((mono) ? "%d": "%d/%d/%d"), nRed, nGreen, nBlue); + if (mono) { + sprintf(buf, "%d", nRed); + } else { + sprintf(buf, "%d/%d/%d", nRed, nGreen, nBlue); + } instancePtr->defaultPalette = Tk_GetUid(buf); /* |