diff options
author | Kalev Lember <kalevlember@gmail.com> | 2014-10-06 14:19:21 +0200 |
---|---|---|
committer | Kalev Lember <kalevlember@gmail.com> | 2014-10-06 14:39:22 +0200 |
commit | 112e74ed6412290f38cc1cbeede65e8e99607c75 (patch) | |
tree | c39fdf835b8ced6ed59564e31ed612a2a0eaf68f /gdk/gdkcairo.c | |
parent | 5e4672092a31320041b51c3ad69f0a40adec59bf (diff) | |
download | gtk+-112e74ed6412290f38cc1cbeede65e8e99607c75.tar.gz |
gdk: Allow calling gdk_cairo_surface_create_from_pixbuf with scale 0
The documentation explicitly states that 0 is an allowed value for using
the same scale as the window. This 0 value is also explicitly checked
down in the call chain and handled.
Diffstat (limited to 'gdk/gdkcairo.c')
-rw-r--r-- | gdk/gdkcairo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c index c54121599c..a363394458 100644 --- a/gdk/gdkcairo.c +++ b/gdk/gdkcairo.c @@ -285,7 +285,7 @@ gdk_cairo_surface_create_from_pixbuf (const GdkPixbuf *pixbuf, cairo_surface_t *surface; g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL); - g_return_val_if_fail (scale > 0, NULL); + g_return_val_if_fail (scale >= 0, NULL); g_return_val_if_fail (for_window == NULL || GDK_IS_WINDOW (for_window), NULL); if (gdk_pixbuf_get_n_channels (pixbuf) == 3) |