cast the return value of _gdk_pixbuf_scaled_anim_new() to fix incompatible

2008-01-14  Michael Natterer  <mitch@imendio.com>

	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_prepare): cast the return
	value of _gdk_pixbuf_scaled_anim_new() to fix incompatible pointer
	warning.


svn path=/trunk/; revision=19364
This commit is contained in:
Michael Natterer 2008-01-14 11:30:34 +00:00 committed by Michael Natterer
parent 7027d8fc16
commit 112dad6695
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2008-01-14 Michael Natterer <mitch@imendio.com>
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_prepare): cast the return
value of _gdk_pixbuf_scaled_anim_new() to fix incompatible pointer
warning.
2007-12-09 Matthias Clasen <mclasen@redhat.com>
* io-jpeg.c: Fix the spinguard logic for big buffers.

View File

@ -279,10 +279,10 @@ gdk_pixbuf_loader_prepare (GdkPixbuf *pixbuf,
anim = gdk_pixbuf_non_anim_new (pixbuf);
if (priv->needs_scale) {
priv->animation = _gdk_pixbuf_scaled_anim_new (anim,
priv->animation = GDK_PIXBUF_ANIMATION (_gdk_pixbuf_scaled_anim_new (anim,
(double) priv->width / gdk_pixbuf_get_width (pixbuf),
(double) priv->height / gdk_pixbuf_get_height (pixbuf),
1.0);
1.0));
g_object_unref (anim);
}
else