diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2005-04-29 01:35:52 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2005-04-29 01:35:52 +0000 |
commit | ec9db1d6af76c053f5e1c746057554e0b0dbcc9b (patch) | |
tree | aee18fe5928493c31f36d99a609fac8052b66289 /gtk | |
parent | 683892f9db54d0bdc2380dba12682df4f282b4b5 (diff) | |
download | netsurf-ec9db1d6af76c053f5e1c746057554e0b0dbcc9b.tar.gz netsurf-ec9db1d6af76c053f5e1c746057554e0b0dbcc9b.tar.bz2 |
[project @ 2005-04-29 01:35:52 by rjw]
Only initialise canvases if we need to.
svn path=/import/netsurf/; revision=1699
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtk_bitmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtk_bitmap.c b/gtk/gtk_bitmap.c index 0121963fe..f1c184a4f 100644 --- a/gtk/gtk_bitmap.c +++ b/gtk/gtk_bitmap.c @@ -32,10 +32,11 @@ struct bitmap; * * \param width width of image in pixels * \param height width of image in pixels + * \param clear whether to clear the image ready for use * \return an opaque struct bitmap, or NULL on memory exhaustion */ -struct bitmap *bitmap_create(int width, int height) +struct bitmap *bitmap_create(int width, int height, bool clear) { GdkPixbuf *pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, true, 8, width, height); |