summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2023-05-23 17:28:27 (GMT)
committerfvogel <fvogelnew1@free.fr>2023-05-23 17:28:27 (GMT)
commit4f37dabc3d00f34929dd23ef097c3c6450c5a416 (patch)
tree9a6a96b8be3d334357d6e50e193ba59c16038aa7
parent5e23e1754ab676ed12e6f392e971e18211a7549f (diff)
parentcfbfc56ab08376755eb01d9a30ab48af0fefe7cc (diff)
downloadtk-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.c4
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;
}