diff options
Diffstat (limited to 'beos/beos_thumbnail.cpp')
-rw-r--r-- | beos/beos_thumbnail.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/beos/beos_thumbnail.cpp b/beos/beos_thumbnail.cpp index 65c6636d3..c093d34d4 100644 --- a/beos/beos_thumbnail.cpp +++ b/beos/beos_thumbnail.cpp @@ -66,6 +66,7 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap, float width; float height; int depth; + struct rect clip; assert(content); assert(bitmap); @@ -125,11 +126,15 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap, content_get_width(content), plot_style_fill_white); + clip.x0 = 0; + clip.y0 = 0; + clip.x1 = content_get_width(content); + clip.y1 = content_get_width(content); + /* render the content */ content_redraw(content, 0, 0, content_get_width(content), content_get_width(content), - 0, 0, - content_get_width(content), content_get_width(content), + &clip, 1.0, 0xFFFFFF); view->Sync(); |