diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-11-05 18:17:27 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-11-05 18:19:14 +0000 |
commit | d0cb1d4e66662b31c3354e20f9ac290153f9bd39 (patch) | |
tree | 356d67a9017ecab614b1557e0462f9126d09826a /desktop/plot_style.c | |
parent | f16d560f6ff9d0fd3a0dc06a8bf072f18507fbcd (diff) | |
download | netsurf-d0cb1d4e66662b31c3354e20f9ac290153f9bd39.tar.gz netsurf-d0cb1d4e66662b31c3354e20f9ac290153f9bd39.tar.bz2 |
Don't abort redraw on bad image.
Diffstat (limited to 'desktop/plot_style.c')
-rw-r--r-- | desktop/plot_style.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/desktop/plot_style.c b/desktop/plot_style.c index 85b898968..a2b582292 100644 --- a/desktop/plot_style.c +++ b/desktop/plot_style.c @@ -68,6 +68,28 @@ static const plot_style_t plot_style_margin_edge_static = { plot_style_t const * const plot_style_margin_edge = &plot_style_margin_edge_static; +/* Broken object replacement styles */ +static const plot_style_t plot_style_broken_object_static = { + .fill_type = PLOT_OP_TYPE_SOLID, + .fill_colour = 0x008888ff, + .stroke_type = PLOT_OP_TYPE_SOLID, + .stroke_colour = 0x000000ff, + .stroke_width = 1, +}; +plot_style_t const * const plot_style_broken_object = + &plot_style_broken_object_static; + +static const plot_font_style_t plot_fstyle_broken_object_static = { + .family = PLOT_FONT_FAMILY_SANS_SERIF, + .size = 14 * FONT_SIZE_SCALE, + .weight = 400, + .flags = FONTF_NONE, + .background = 0x8888ff, + .foreground = 0x000044, +}; +plot_font_style_t const * const plot_fstyle_broken_object = + &plot_fstyle_broken_object_static; + /* caret style used in html_redraw_caret */ static plot_style_t plot_style_caret_static = { .stroke_type = PLOT_OP_TYPE_SOLID, |