[Xfce-bugs] [Bug 1516] libxfcegui4: Cropped icons - GtkIconTheme icon scaling behaviour

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Tue Feb 28 22:28:51 CET 2006


Do NOT reply to this email.  To make further comments on this bug, use
the URL below:
http://bugzilla.xfce.org/show_bug.cgi?id=1516





------- Additional Comments From bjt23 at cornell.edu  2006-02-28 21:28 UTC -------
Actually, one obvious thing I didn't try doing was this:

if(w != size || h != size) {
    if(w == h) {
        /* resize to (size)x(size) */
    } else {
        /* calculate aspect ratio and resize */
    }
}

That's pretty simple, and gdk_pixbuf_get_width/height() is probably pretty
cheap.  It's really the floating point divs/mults that kills performance here.

-- 
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Xfce-bugs mailing list