From 8d1cbc0d050432763bddbb81c9ebcbc1cc8dc1c2 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Fri, 27 Dec 2002 20:35:32 +0000 Subject: [project @ 2002-12-27 20:35:32 by bursa] Implement color property. svn path=/import/netsurf/; revision=65 --- riscos/gui.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'riscos') 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, -- cgit v1.2.3