summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2023-05-21 18:34:56 (GMT)
committerfvogel <fvogelnew1@free.fr>2023-05-21 18:34:56 (GMT)
commit32f8bb378efc9adff995512edc41ae596728488b (patch)
treee26a59e2c52eca246ba26dfa098039cef0a6af0c /macosx
parent09bc41c8e807948b9d3e5da4cadaede782e1c465 (diff)
downloadtk-32f8bb378efc9adff995512edc41ae596728488b.zip
tk-32f8bb378efc9adff995512edc41ae596728488b.tar.gz
tk-32f8bb378efc9adff995512edc41ae596728488b.tar.bz2
Fix [f40d9debad]: Aqua: fix size of FourCC bitmaps. Patch from Christopher Chavez.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXBitmap.c4
1 files 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;
}