mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-28 06:49:41 +03:00
Style guide indentation.
svn path=/trunk/netsurf/; revision=8345
This commit is contained in:
parent
7372218033
commit
21a2bfc53c
@ -340,7 +340,7 @@ bool textplain_redraw(struct content *c, int x, int y,
|
||||
struct textplain_line *line = c->data.textplain.physical_line;
|
||||
struct rect clip;
|
||||
size_t length;
|
||||
plot_style_t *plot_style_highlight;
|
||||
plot_style_t *plot_style_highlight;
|
||||
|
||||
clip.x0 = clip_x0;
|
||||
clip.y0 = clip_y0;
|
||||
@ -366,9 +366,9 @@ bool textplain_redraw(struct content *c, int x, int y,
|
||||
|
||||
/* choose a suitable background colour for any highlighted text */
|
||||
if ((background_colour & 0x808080) == 0x808080)
|
||||
plot_style_highlight = plot_style_fill_black;
|
||||
else
|
||||
plot_style_highlight = plot_style_fill_white;
|
||||
plot_style_highlight = plot_style_fill_black;
|
||||
else
|
||||
plot_style_highlight = plot_style_fill_white;
|
||||
|
||||
x += MARGIN * scale;
|
||||
y += MARGIN * scale;
|
||||
@ -437,8 +437,8 @@ bool textplain_redraw(struct content *c, int x, int y,
|
||||
|
||||
if (highlighted) {
|
||||
int sy = y + (lineno * scaled_line_height);
|
||||
if (!plot.fill(tx, sy,
|
||||
ntx, sy + scaled_line_height,
|
||||
if (!plot.fill(tx, sy,
|
||||
ntx, sy + scaled_line_height,
|
||||
plot_style_highlight))
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user