forked from AuroraMiddleware/gtk
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:
parent
7027d8fc16
commit
112dad6695
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user