summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2005-04-29 01:35:52 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2005-04-29 01:35:52 +0000
commitec9db1d6af76c053f5e1c746057554e0b0dbcc9b (patch)
treeaee18fe5928493c31f36d99a609fac8052b66289 /gtk
parent683892f9db54d0bdc2380dba12682df4f282b4b5 (diff)
downloadnetsurf-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.c3
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);