mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-17 23:14:18 +03:00
Like HTML, text-plain contents have no intrinsic dimensions.
svn path=/trunk/netsurf/; revision=12057
This commit is contained in:
parent
1d764f7bf7
commit
88cf21939c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user