diff options
author | Havoc Pennington <hp@pobox.com> | 1999-10-27 17:28:44 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 1999-10-27 17:28:44 +0000 |
commit | 1a0a5d0399d5b3aaa4edc1c9763e07c0c35d1048 (patch) | |
tree | 0a74932f1276d398446153e05fbd32ce789da2a4 /gdk-pixbuf/gdk-pixbuf.h | |
parent | e8242a24eb22f6b09d24a846ce21f2c099f95779 (diff) | |
download | gtk+-1a0a5d0399d5b3aaa4edc1c9763e07c0c35d1048.tar.gz |
New function to create a blank pixbuf.
1999-10-27 Havoc Pennington <hp@pobox.com>
* src/gdk-pixbuf.c (gdk_pixbuf_new): New function to create a
blank pixbuf.
* src/gdk-pixbuf-loader.c (gdk_pixbuf_loader_write): Check all
three progressive load funcs are non-NULL, rather than checking
begin_load three times. Also, check whether begin_load returns
NULL on failure.
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf.h')
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf.h b/gdk-pixbuf/gdk-pixbuf.h index ec42cf3eae..47fce21777 100644 --- a/gdk-pixbuf/gdk-pixbuf.h +++ b/gdk-pixbuf/gdk-pixbuf.h @@ -59,6 +59,9 @@ void gdk_pixbuf_unref (GdkPixbuf *pixbuf); GdkPixbuf *gdk_pixbuf_new_from_art_pixbuf (ArtPixBuf *art_pixbuf); +/* Create a "blank" pixbuf with an optimal rowstride and a new buffer */ +GdkPixbuf *gdk_pixbuf_new (gboolean has_alpha, int width, int height); + /* Simple loading */ GdkPixbuf *gdk_pixbuf_new_from_file (const char *filename); |