2 * Copyright (C) 2012, The AROS Development Team
4 * Author: Jason S. McMullan <jason.mcmullan@gmail.com>
6 * Licensed under the AROS PUBLIC LICENSE (APL) Version 1.1
12 #include <workbench/icon.h>
14 #include <proto/exec.h>
15 #include <proto/icon.h>
17 int main(int argc
, char **argv
)
23 printf("Usage:\n%s <width> <height>\n", argv
[0]);
27 maxw
= strtol(argv
[1], NULL
, 0);
28 maxh
= strtol(argv
[2], NULL
, 0);
30 if (maxw
< 20) maxw
= 20;
31 if (maxh
< 20) maxh
= 20;
33 scalebox
= PACK_ICON_SCALEBOX(maxw
, maxh
);
35 IconControl(NULL
, ICONCTRLA_SetGlobalScaleBox
, scalebox
, TAG_END
);