summaryrefslogtreecommitdiff
path: root/beos/beos_thumbnail.cpp
diff options
context:
space:
mode:
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 */