Commit d09798aa authored by John Sullivan's avatar John Sullivan

Changed icon scaling back to ART_FILTER_BILINEAR again after jrb and federico

both pointed out that the black-scaled-icon problem should be (and was) fixed
with the latest gdk-pixbuf.
parent c350b98d
2000-02-04 John Sullivan <sullivan@eazel.com>
* libnautilus/nautilus-icon-factory.c:
(nautilus_icon_factory_scale): Changed back to ART_FILTER_BILINEAR
once again after jrb & federico both pointed out that the
black-scaled-icons problem should be fixed (and was) in the latest
gdk-pixbuf.
2000-02-03 Andy Hertzfeld <andy@eazel.com> 2000-02-03 Andy Hertzfeld <andy@eazel.com>
* src/nautilus-zoom-control.c: * src/nautilus-zoom-control.c:
......
...@@ -543,15 +543,11 @@ nautilus_icon_factory_scale (NautilusIconFactory *factory, ...@@ -543,15 +543,11 @@ nautilus_icon_factory_scale (NautilusIconFactory *factory,
new_width = (old_width * size_in_pixels) / NAUTILUS_ICON_SIZE_STANDARD; new_width = (old_width * size_in_pixels) / NAUTILUS_ICON_SIZE_STANDARD;
new_height = (old_height * size_in_pixels) / NAUTILUS_ICON_SIZE_STANDARD; new_height = (old_height * size_in_pixels) / NAUTILUS_ICON_SIZE_STANDARD;
/* This creates scaled icon with ref. count of 1. /* This creates scaled icon with ref. count of 1. */
* Use ART_FILTER_NEAREST because others such as ART_FILTER_BILINEAR
* cause scaled icons used as pixmaps/masks (e.g. in list view) to
* appear nearly black.
*/
result = gdk_pixbuf_scale_simple (standard_sized_pixbuf, result = gdk_pixbuf_scale_simple (standard_sized_pixbuf,
new_width, new_width,
new_height, new_height,
ART_FILTER_NEAREST); ART_FILTER_BILINEAR);
return result; return result;
} }
......
...@@ -543,15 +543,11 @@ nautilus_icon_factory_scale (NautilusIconFactory *factory, ...@@ -543,15 +543,11 @@ nautilus_icon_factory_scale (NautilusIconFactory *factory,
new_width = (old_width * size_in_pixels) / NAUTILUS_ICON_SIZE_STANDARD; new_width = (old_width * size_in_pixels) / NAUTILUS_ICON_SIZE_STANDARD;
new_height = (old_height * size_in_pixels) / NAUTILUS_ICON_SIZE_STANDARD; new_height = (old_height * size_in_pixels) / NAUTILUS_ICON_SIZE_STANDARD;
/* This creates scaled icon with ref. count of 1. /* This creates scaled icon with ref. count of 1. */
* Use ART_FILTER_NEAREST because others such as ART_FILTER_BILINEAR
* cause scaled icons used as pixmaps/masks (e.g. in list view) to
* appear nearly black.
*/
result = gdk_pixbuf_scale_simple (standard_sized_pixbuf, result = gdk_pixbuf_scale_simple (standard_sized_pixbuf,
new_width, new_width,
new_height, new_height,
ART_FILTER_NEAREST); ART_FILTER_BILINEAR);
return result; return result;
} }
......
...@@ -543,15 +543,11 @@ nautilus_icon_factory_scale (NautilusIconFactory *factory, ...@@ -543,15 +543,11 @@ nautilus_icon_factory_scale (NautilusIconFactory *factory,
new_width = (old_width * size_in_pixels) / NAUTILUS_ICON_SIZE_STANDARD; new_width = (old_width * size_in_pixels) / NAUTILUS_ICON_SIZE_STANDARD;
new_height = (old_height * size_in_pixels) / NAUTILUS_ICON_SIZE_STANDARD; new_height = (old_height * size_in_pixels) / NAUTILUS_ICON_SIZE_STANDARD;
/* This creates scaled icon with ref. count of 1. /* This creates scaled icon with ref. count of 1. */
* Use ART_FILTER_NEAREST because others such as ART_FILTER_BILINEAR
* cause scaled icons used as pixmaps/masks (e.g. in list view) to
* appear nearly black.
*/
result = gdk_pixbuf_scale_simple (standard_sized_pixbuf, result = gdk_pixbuf_scale_simple (standard_sized_pixbuf,
new_width, new_width,
new_height, new_height,
ART_FILTER_NEAREST); ART_FILTER_BILINEAR);
return result; return result;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment