From 556072e9949f63461d8936bf47f882e69800285c Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Sat, 25 Mar 2006 23:53:34 +0000 Subject: [project @ 2006-03-25 23:53:34 by rjek] Misc GTK thumbnailing fixes svn path=/import/netsurf/; revision=2167 --- gtk/gtk_thumbnail.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gtk/gtk_thumbnail.c') diff --git a/gtk/gtk_thumbnail.c b/gtk/gtk_thumbnail.c index 0de132d2d..d7abf84b6 100644 --- a/gtk/gtk_thumbnail.c +++ b/gtk/gtk_thumbnail.c @@ -40,7 +40,7 @@ bool thumbnail_create(struct content *content, struct bitmap *bitmap, gint height = gdk_pixbuf_get_height(pixbuf); gint depth = (gdk_screen_get_system_visual(gdk_screen_get_default()))->depth; GdkPixmap *pixmap = gdk_pixmap_new(NULL, width, height, depth); - GdkColor c = { 0, 65535, 65535, 65535 }; + GdkColor c = { 0xffffff, 65535, 65535, 65535 }; float scale = 1.0; assert(content); @@ -58,9 +58,12 @@ bool thumbnail_create(struct content *content, struct bitmap *bitmap, /* set to plot to pixmap */ current_drawable = pixmap; current_gc = gdk_gc_new(current_drawable); + gdk_gc_set_foreground(current_gc, &c); #ifdef CAIRO_VERSION current_cr = gdk_cairo_create(current_drawable); + cairo_set_source_rgba(current_cr, 1, 1, 1, 1); #endif + gdk_draw_rectangle(pixmap, current_gc, TRUE, 0, 0, width, height); /* render the content */ content_redraw(content, 0, 0, width, height, -- cgit v1.2.3