forked from AuroraMiddleware/gtk
Don't let the width or height go below 1. (#516024, Christian Persch)
2008-02-12 Matthias Clasen <mclasne@redhat.com> * gdk-pixbuf-io.c (at_scale_size_prepared_cb): Don't let the width or height go below 1. (#516024, Christian Persch) svn path=/trunk/; revision=19534
This commit is contained in:
parent
945db7f6a6
commit
0eb4770cfa
@ -1,3 +1,8 @@
|
|||||||
|
2008-02-12 Matthias Clasen <mclasne@redhat.com>
|
||||||
|
|
||||||
|
* gdk-pixbuf-io.c (at_scale_size_prepared_cb): Don't let
|
||||||
|
the width or height go below 1. (#516024, Christian Persch)
|
||||||
|
|
||||||
2008-02-10 Matthias Clasen <mclasne@redhat.com>
|
2008-02-10 Matthias Clasen <mclasne@redhat.com>
|
||||||
|
|
||||||
* gdk-pixbuf-scaled-anim.c: Try harder to return pixbufs
|
* gdk-pixbuf-scaled-anim.c: Try harder to return pixbufs
|
||||||
|
@ -1048,6 +1048,9 @@ at_scale_size_prepared_cb (GdkPixbufLoader *loader,
|
|||||||
height = info->height;
|
height = info->height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
width = MAX (width, 1);
|
||||||
|
height = MAX (height, 1);
|
||||||
|
|
||||||
gdk_pixbuf_loader_set_size (loader, width, height);
|
gdk_pixbuf_loader_set_size (loader, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user