forked from AuroraMiddleware/gtk
icontheme: Don't try to scale pixbufs to 0px
Always insist on at least 1px, even if the thumbnail we're turning into
an icon was 256 * 3 and should be scaled to 32 * 3/8.
(cherry picked from commit 6769db160d
)
This commit is contained in:
parent
d9a9ede7a2
commit
edcddf6561
@ -4026,8 +4026,8 @@ icon_info_ensure_scale_and_pixbuf (GtkIconInfo *icon_info)
|
||||
else
|
||||
{
|
||||
icon_info->pixbuf = gdk_pixbuf_scale_simple (source_pixbuf,
|
||||
0.5 + image_width * icon_info->scale,
|
||||
0.5 + image_height * icon_info->scale,
|
||||
MAX (1, 0.5 + image_width * icon_info->scale),
|
||||
MAX (1, 0.5 + image_height * icon_info->scale),
|
||||
GDK_INTERP_BILINEAR);
|
||||
g_object_unref (source_pixbuf);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user