From eddae6af0663243a2677674d501f9a87d55798f5 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 30 Jun 2011 15:48:07 +0000 Subject: Remove plotter table global. Pass a redraw context around redraw functions. Knockout could be handled better. Note: untested on most front ends. svn path=/trunk/netsurf/; revision=12543 --- beos/beos_thumbnail.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'beos/beos_thumbnail.cpp') diff --git a/beos/beos_thumbnail.cpp b/beos/beos_thumbnail.cpp index 88e291c44..3d49d5c10 100644 --- a/beos/beos_thumbnail.cpp +++ b/beos/beos_thumbnail.cpp @@ -71,6 +71,11 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap, int big_height; int depth; + struct redraw_context ctx = { + .interactive = false, + .plot = &nsbeos_plotters + }; + assert(content); assert(bitmap); @@ -116,10 +121,8 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap, /* impose our view on the content... */ nsbeos_current_gc_set(view); - plot = nsbeos_plotters; - /* render the content */ - thumbnail_redraw(content, big_width, big_height); + thumbnail_redraw(content, big_width, big_height, &ctx); view->Sync(); view->UnlockLooper(); -- cgit v1.2.3