From 32f8bb378efc9adff995512edc41ae596728488b Mon Sep 17 00:00:00 2001 From: fvogel Date: Sun, 21 May 2023 18:34:56 +0000 Subject: Fix [f40d9debad]: Aqua: fix size of FourCC bitmaps. Patch from Christopher Chavez. --- macosx/tkMacOSXBitmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macosx/tkMacOSXBitmap.c b/macosx/tkMacOSXBitmap.c index 1951518..49736f0 100644 --- a/macosx/tkMacOSXBitmap.c +++ b/macosx/tkMacOSXBitmap.c @@ -307,8 +307,6 @@ TkpGetNativeAppBitmap( } } if (image) { - *width = size.width; - *height = size.height; pixmap = PixmapFromImage(display, image, NSSizeToCGSize(size)); } else if (name) { /* @@ -323,6 +321,8 @@ TkpGetNativeAppBitmap( pixmap = PixmapFromImage(display, iconImage, NSSizeToCGSize(size)); } } + *width = size.width; + *height = size.height; return pixmap; } -- cgit v0.12