Follow-up Comment #5, bug #25643 (project gnustep):
yuo don't understand the scaling in scaledIconSizeForSize(imageSize)?
basically it tries to keep the same aspect ratio
assuming the icon is made for a 64x64 icon window
and the icon is some random size like 48x56
so say windowmaker returns a 32x32 iconSize
we scale the icon down by
48 * 32 / 64 = 24;
56 * 32 / 64 = 28;
so our new icon is 24x28
we do this on a copy because other places (exception panels, file open
dialogs etc, use the -applicationIconImage:
and i felt it was best to have -applicationIconImage: return what was set in
-setApplicationIconImage: and keep a private scaled copy for the actual
icon...
I would say make scaledIconSizeForSize() could just not scale up, only scale
down, and then maybe -setImage: could return the scaled copy or provide an
accessor method in NSAppIconView for the mini window stuff below it?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?25643>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep