summaryrefslogtreecommitdiff
path: root/beos/beos_thumbnail.cpp
diff options
context:
space:
mode:
authorFrançois Revel <mmu_man@netsurf-browser.org>2011-02-22 23:50:18 +0000
committerFrançois Revel <mmu_man@netsurf-browser.org>2011-02-22 23:50:18 +0000
commite8ce7bd953095f0120b6a04db424c51989e97572 (patch)
treef80975860d267b082c0ec834ec2d58380997db0c /beos/beos_thumbnail.cpp
parentc550ae0e698d5cac09562fc800805726c8e10411 (diff)
downloadnetsurf-e8ce7bd953095f0120b6a04db424c51989e97572.tar.gz
netsurf-e8ce7bd953095f0120b6a04db424c51989e97572.tar.bz2
Fix the build.
svn path=/trunk/netsurf/; revision=11766
Diffstat (limited to 'beos/beos_thumbnail.cpp')
-rw-r--r--beos/beos_thumbnail.cpp7
1 files changed, 4 insertions, 3 deletions
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 <assert.h>
+#include <sys/param.h>
#include <Bitmap.h>
#include <View.h>
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 */