From e8ce7bd953095f0120b6a04db424c51989e97572 Mon Sep 17 00:00:00 2001 From: François Revel Date: Tue, 22 Feb 2011 23:50:18 +0000 Subject: Fix the build. svn path=/trunk/netsurf/; revision=11766 --- beos/beos_thumbnail.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'beos/beos_thumbnail.cpp') diff --git a/beos/beos_thumbnail.cpp b/beos/beos_thumbnail.cpp index 62b60175d..881d5a071 100644 --- a/beos/beos_thumbnail.cpp +++ b/beos/beos_thumbnail.cpp @@ -26,6 +26,7 @@ #define __STDBOOL_H__ 1 #include +#include #include #include extern "C" { @@ -79,8 +80,8 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap, height = thumbnail->Bounds().Height(); depth = 32; - big_width = min(content_get_width(content), 1024); - big_height = ((big_width * height) + (width / 2)) / width; + big_width = MIN(content_get_width(content), 1024); + big_height = (int)(((big_width * height) + (width / 2)) / width); BRect contentRect(0, 0, big_width - 1, big_height - 1); big = new BBitmap(contentRect, B_BITMAP_ACCEPTS_VIEWS, B_RGB32); @@ -117,7 +118,7 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap, nsbeos_current_gc_set(view); plot = nsbeos_plotters; - plot_scale = thumbnail_get_redraw_scale(content, big_width) + plot_scale = thumbnail_get_redraw_scale(content, big_width); nsbeos_plot_set_scale(plot_scale); /* render the content */ -- cgit v1.2.3