bug-gnustep
[Top][All Lists]
Advanced

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

Re: [bug #33475] .icns loaded with NSImage


From: Austin Clow
Subject: Re: [bug #33475] .icns loaded with NSImage
Date: Sat, 04 Jun 2011 19:46:38 -0500

I built it from the trunk last weekend, version 0.21. 

I went ahead and replaced the common_folder.tiff with a .icns file. The new 
icon appeared, but it was also the smallest representation scaled up. 

Maybe I need to rebuild?

On Jun 4, 2011, at 6:27 PM, Fred Kiefer wrote:

> Update of bug #33475 (project gnustep):
> 
>             Assigned to:                    None => FredKiefer             
> 
>    _______________________________________________________
> 
> Follow-up Comment #2:
> 
> Which version of GNUstep gui are you using?
> 
> Up until and including the last release we only used one icon from an icns
> file. I changed the code a few weeks ago to load all available icons (or at
> least the formats that we implement). After that the icon used was somewhat
> arbitrary. Wolfgang Lux then changed the code in NSImage that selects the
> representation to use to take one whose size matches exactly the size to draw.
> This may not be the perfect solution in your case. Most likely there we should
> choose the smallest representation that is bigger or equal to the requested
> size. Is this what you are looking for? If so, it should be easy to adopt the
> code in [NSImage -bestRepresentationForDevice:].
> We could of course also use the biggest size all the times, but this may not
> yield the best result, as we have'll to scale down the image.
> 
>    _______________________________________________________
> 
> Reply to this item at:
> 
>  <http://savannah.gnu.org/bugs/?33475>
> 
> _______________________________________________
>  Nachricht geschickt von/durch Savannah
>  http://savannah.gnu.org/
> 




reply via email to

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