From ec9db1d6af76c053f5e1c746057554e0b0dbcc9b Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Fri, 29 Apr 2005 01:35:52 +0000 Subject: [project @ 2005-04-29 01:35:52 by rjw] Only initialise canvases if we need to. svn path=/import/netsurf/; revision=1699 --- gtk/gtk_bitmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gtk') 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); -- cgit v1.2.3