diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-03-15 15:08:10 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-03-15 15:08:10 +0000 |
commit | 88cf21939c8b846a2163fbce6e41c8e833dee4e3 (patch) | |
tree | c61582757165a4c7ef4364a6474cb43507bf29ae | |
parent | 1d764f7bf7813b621a93f8fc728b2977d7fe70cc (diff) | |
download | netsurf-88cf21939c8b846a2163fbce6e41c8e833dee4e3.tar.gz netsurf-88cf21939c8b846a2163fbce6e41c8e833dee4e3.tar.bz2 |
Like HTML, text-plain contents have no intrinsic dimensions.
svn path=/trunk/netsurf/; revision=12057
-rw-r--r-- | desktop/browser.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/browser.c b/desktop/browser.c index 55c9682ab..fafdf7b82 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -97,6 +97,7 @@ bool browser_window_redraw(struct browser_window *bw, int x, int y, int width = 0; int height = 0; bool plot_ok = true; + content_type content_type; if (bw == NULL) { LOG(("NULL browser window")); @@ -116,7 +117,8 @@ bool browser_window_redraw(struct browser_window *bw, int x, int y, plot.clip(clip); - if (content_get_type(bw->current_content) != CONTENT_HTML) { + content_type = content_get_type(bw->current_content); + if (content_type != CONTENT_HTML && content_type != CONTENT_TEXTPLAIN) { /* Set render area according to scale */ width = content_get_width(bw->current_content) * bw->scale; height = content_get_height(bw->current_content) * bw->scale; |