bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #25643] WindowMaker no longer picking up icon...


From: matt rice
Subject: [bug #25643] WindowMaker no longer picking up icon...
Date: Sat, 21 Feb 2009 23:28:22 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6

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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]