diff options
author | James Bursa <james@netsurf-browser.org> | 2002-12-27 20:35:32 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2002-12-27 20:35:32 +0000 |
commit | 8d1cbc0d050432763bddbb81c9ebcbc1cc8dc1c2 (patch) | |
tree | 8f5c5ce75502d4e57093e591e23818b7ce9516ee /riscos/gui.c | |
parent | c15de8c5853961e867cb727d63dbe859d75e4152 (diff) | |
download | netsurf-8d1cbc0d050432763bddbb81c9ebcbc1cc8dc1c2.tar.gz netsurf-8d1cbc0d050432763bddbb81c9ebcbc1cc8dc1c2.tar.bz2 |
[project @ 2002-12-27 20:35:32 by bursa]
Implement color property.
svn path=/import/netsurf/; revision=65
Diffstat (limited to 'riscos/gui.c')
-rw-r--r-- | riscos/gui.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/riscos/gui.c b/riscos/gui.c index 6e4599264..94b6de013 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -1,5 +1,5 @@ /** - * $Id: gui.c,v 1.6 2002/12/27 20:08:18 bursa Exp $ + * $Id: gui.c,v 1.7 2002/12/27 20:35:32 bursa Exp $ */ #include "netsurf/riscos/font.h" @@ -495,6 +495,13 @@ void ro_gui_window_redraw_box(gui_window* g, struct box * box, signed long x, si } #endif + if (box->style->background_color != TRANSPARENT) + { + colourtrans_set_gcol(box->style->background_color << 8, 0, os_ACTION_OVERWRITE, 0); + os_plot(os_MOVE_TO, x + box->x * 2, y - box->y * 2); + os_plot(os_PLOT_RECTANGLE | os_PLOT_BY, box->width * 2, -box->height * 2); + } + if (box->type == BOX_INLINE) { @@ -556,7 +563,7 @@ if (g->data.browser.bw->current_content->data.html.text_selection.selected == 1) } } - xcolourtrans_set_font_colours(box->font->handle, 0xffffff, box->style->color << 8, + colourtrans_set_font_colours(box->font->handle, 0xffffff, box->style->color << 8, 14, 0, 0, 0); font_paint(box->font->handle, box->text, |