From 982dc9e128a773b9db6fae60181db32b03a4b647 Mon Sep 17 00:00:00 2001 From: François Revel Date: Mon, 2 Aug 2010 23:35:35 +0000 Subject: Fix BeOS build: - struct content -> hlcache_handle - login window (though it won't work yet as the message isn't handled, and since we don't have the window pointer anymore we can't add the alert as subset of the window...), - rsrc fetcher, - netsurf_init() args (but the replicant is still broken due to this), - export the realpath() hack as it's needed elsewhere too. svn path=/trunk/netsurf/; revision=10677 --- beos/beos_thumbnail.cpp | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'beos/beos_thumbnail.cpp') diff --git a/beos/beos_thumbnail.cpp b/beos/beos_thumbnail.cpp index 7888999dc..65c6636d3 100644 --- a/beos/beos_thumbnail.cpp +++ b/beos/beos_thumbnail.cpp @@ -54,7 +54,7 @@ extern status_t ScaleBitmap(const BBitmap& inBitmap, BBitmap& outBitmap); * \param bitmap the bitmap to draw to * \param url the URL the thumnail belongs to, or NULL */ -bool thumbnail_create(struct content *content, struct bitmap *bitmap, +bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap, const char *url) { BBitmap *thumbnail; @@ -78,9 +78,11 @@ bool thumbnail_create(struct content *content, struct bitmap *bitmap, LOG(("Trying to create a thumbnail bitmap %d x %d for a content of %d x %d @ %d", width, height, - content->width, content->width, depth)); + content_get_width(content), content_get_width(content), depth)); - BRect contentRect(0, 0, content->width - 1, content->width - 1); + BRect contentRect(0, 0, + content_get_width(content) - 1, + content_get_width(content) - 1); big = new BBitmap(contentRect, B_BITMAP_ACCEPTS_VIEWS, B_RGB32); @@ -118,12 +120,18 @@ bool thumbnail_create(struct content *content, struct bitmap *bitmap, plot = nsbeos_plotters; nsbeos_plot_set_scale(1.0); - plot.rectangle(0, 0, content->width, content->width, plot_style_fill_white); + plot.rectangle(0, 0, + content_get_width(content), + content_get_width(content), + plot_style_fill_white); /* render the content */ - content_redraw(content, 0, 0, content->width, content->width, - 0, 0, content->width, content->width, 1.0, 0xFFFFFF); - + content_redraw(content, 0, 0, + content_get_width(content), content_get_width(content), + 0, 0, + content_get_width(content), content_get_width(content), + 1.0, 0xFFFFFF); + view->Sync(); view->UnlockLooper(); -- cgit v1.2.3