diff options
author | François Revel <mmu_man@netsurf-browser.org> | 2010-08-02 23:35:35 +0000 |
---|---|---|
committer | François Revel <mmu_man@netsurf-browser.org> | 2010-08-02 23:35:35 +0000 |
commit | 982dc9e128a773b9db6fae60181db32b03a4b647 (patch) | |
tree | caad3d2162f65a2fc771a5cdd784badcb4bf7359 /beos/beos_thumbnail.cpp | |
parent | 59f13bbf24d5cae3d00ca3c1bc7d9cbd6f501e4f (diff) | |
download | netsurf-982dc9e128a773b9db6fae60181db32b03a4b647.tar.gz netsurf-982dc9e128a773b9db6fae60181db32b03a4b647.tar.bz2 |
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
Diffstat (limited to 'beos/beos_thumbnail.cpp')
-rw-r--r-- | beos/beos_thumbnail.cpp | 22 |
1 files changed, 15 insertions, 7 deletions
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(); |