summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/fetchcache.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/fetchcache.c b/content/fetchcache.c
index 54fd7e1c8..192da6cd4 100644
--- a/content/fetchcache.c
+++ b/content/fetchcache.c
@@ -85,6 +85,11 @@ struct content * fetchcache(const char *url,
if ((c = content_get(url1)) != NULL) {
free(url1);
content_add_user(c, callback, p1, p2);
+ /* resize HTML content to the required size */
+ if (c->type == CONTENT_HTML) {
+ c->width = width;
+ c->height = height;
+ }
return c;
}
}