summaryrefslogtreecommitdiff
path: root/amiga/bitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'amiga/bitmap.c')
-rw-r--r--amiga/bitmap.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/amiga/bitmap.c b/amiga/bitmap.c
index bdb6abc63..23f3a45e7 100644
--- a/amiga/bitmap.c
+++ b/amiga/bitmap.c
@@ -123,6 +123,14 @@ bool amiga_bitmap_save(void *bitmap, const char *path, unsigned flags)
if((dto = ami_datatype_object_from_bitmap(bitmap)))
{
+ if (flags & AMI_BITMAP_SCALE_ICON) {
+ IDoMethod(dto, PDTM_SCALE, 16, 16, 0);
+
+ if((DoDTMethod(dto, 0, 0, DTM_PROCLAYOUT, 0, 1)) == 0) {
+ return false;
+ }
+ }
+
err = SaveDTObjectA(dto, NULL, NULL, path, DTWM_IFF, FALSE, NULL);
DisposeDTObject(dto);
}