summaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-02-20 15:48:27 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-02-20 15:48:27 +0000
commitc78e7d9acd4d80a31514a2b7dd2750d164e0983c (patch)
treeb3d304b801ecd4aefd915bee6be1b1bb137d0452 /windows
parent77985f4faabb1abf1b75252e18f5a535b7e9b48b (diff)
downloadnetsurf-c78e7d9acd4d80a31514a2b7dd2750d164e0983c.tar.gz
netsurf-c78e7d9acd4d80a31514a2b7dd2750d164e0983c.tar.bz2
Make Windows intrim thumbnail aspect ratio match required bitmap aspect ratio. Increase max render width.
svn path=/trunk/netsurf/; revision=11723
Diffstat (limited to 'windows')
-rw-r--r--windows/thumbnail.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/windows/thumbnail.c b/windows/thumbnail.c
index 83c72facc..a9e378bc0 100644
--- a/windows/thumbnail.c
+++ b/windows/thumbnail.c
@@ -42,8 +42,9 @@ thumbnail_create(hlcache_handle *content,
struct bitmap *fsbitmap;
struct rect clip;
- width = min(content_get_width(content), 800);
- height = min(content_get_height(content), 600);
+ width = min(content_get_width(content), 1024);
+ height = ((width * bitmap->height) + (bitmap->width / 2)) /
+ bitmap->width;
clip.x0 = 0;
clip.y0 = 0;