diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-03-15 15:10:10 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-03-15 15:10:10 +0000 |
commit | 14ab7bb98fa606c9077391dc05e10ce9fcd11933 (patch) | |
tree | 4f46d47e14d1d6c38a4a32b3a244d541ed68fef4 /render | |
parent | 88cf21939c8b846a2163fbce6e41c8e833dee4e3 (diff) | |
download | netsurf-14ab7bb98fa606c9077391dc05e10ce9fcd11933.tar.gz netsurf-14ab7bb98fa606c9077391dc05e10ce9fcd11933.tar.bz2 |
Make text size a separate #define.
svn path=/trunk/netsurf/; revision=12058
Diffstat (limited to 'render')
-rw-r--r-- | render/textplain.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/render/textplain.c b/render/textplain.c index bc4505ce2..61b423cdb 100644 --- a/render/textplain.c +++ b/render/textplain.c @@ -56,10 +56,11 @@ #define TAB_WIDTH 8 /* must be power of 2 currently */ +#define TEXT_SIZE 10 * FONT_SIZE_SCALE /* Unscaled text size in pt */ static plot_font_style_t textplain_style = { .family = PLOT_FONT_FAMILY_MONOSPACE, - .size = 10 * FONT_SIZE_SCALE, + .size = TEXT_SIZE, .weight = 400, .flags = FONTF_NONE, .background = 0xffffff, @@ -586,7 +587,7 @@ bool textplain_redraw(struct content *c, int x, int y, else plot_style_highlight = plot_style_fill_white; - /* Set background colour to plot with */ + /* Set up font plot style */ textplain_style.background = background_colour; x += MARGIN * scale; @@ -611,7 +612,7 @@ bool textplain_redraw(struct content *c, int x, int y, while (next_offset < length && text[next_offset] != '\t') next_offset = utf8_next(text, length, next_offset); - if (!text_redraw(text + offset, next_offset - offset, + if (!text_redraw(text + offset, next_offset - offset, line[lineno].start + offset, 0, &textplain_style, tx, y + (lineno * scaled_line_height), |