diff options
author | fvogel <fvogelnew1@free.fr> | 2023-05-23 17:28:27 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2023-05-23 17:28:27 (GMT) |
commit | 4f37dabc3d00f34929dd23ef097c3c6450c5a416 (patch) | |
tree | 9a6a96b8be3d334357d6e50e193ba59c16038aa7 | |
parent | 5e23e1754ab676ed12e6f392e971e18211a7549f (diff) | |
parent | cfbfc56ab08376755eb01d9a30ab48af0fefe7cc (diff) | |
download | tk-4f37dabc3d00f34929dd23ef097c3c6450c5a416.zip tk-4f37dabc3d00f34929dd23ef097c3c6450c5a416.tar.gz tk-4f37dabc3d00f34929dd23ef097c3c6450c5a416.tar.bz2 |
Fix [f40d9debad]: Aqua: fix size of FourCC bitmaps. Patch from Christopher Chavez.
-rw-r--r-- | macosx/tkMacOSXBitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/tkMacOSXBitmap.c b/macosx/tkMacOSXBitmap.c index 0a15d66..27a29fa 100644 --- a/macosx/tkMacOSXBitmap.c +++ b/macosx/tkMacOSXBitmap.c @@ -307,8 +307,6 @@ TkpGetNativeAppBitmap( } } if (image) { - *width = (int)size.width; - *height = (int)size.height; pixmap = PixmapFromImage(display, image, NSSizeToCGSize(size)); } else if (name) { /* @@ -323,6 +321,8 @@ TkpGetNativeAppBitmap( pixmap = PixmapFromImage(display, iconImage, NSSizeToCGSize(size)); } } + *width = (int)size.width; + *height = (int)size.height; return pixmap; } |