From 4a500f5614a9f238a144d05388dcb41b76f2c9f7 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Fri, 21 May 2004 23:42:26 +0000 Subject: [project @ 2004-05-21 23:42:26 by bursa] Fix and clean code for radio and checkbox inputs. svn path=/import/netsurf/; revision=884 --- riscos/htmlredraw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'riscos') diff --git a/riscos/htmlredraw.c b/riscos/htmlredraw.c index 6c61c0c94..934a3abf1 100644 --- a/riscos/htmlredraw.c +++ b/riscos/htmlredraw.c @@ -227,12 +227,12 @@ void html_redraw_box(struct content *content, struct box * box, } else if (box->gadget && box->gadget->type == GADGET_CHECKBOX) { html_redraw_checkbox(x + padding_left, y - padding_top, width, height, - box->gadget->data.checkbox.selected); + box->gadget->selected); } else if (box->gadget && box->gadget->type == GADGET_RADIO) { html_redraw_radio(x + padding_left, y - padding_top, width, height, - box->gadget->data.radio.selected); + box->gadget->selected); } else if (box->gadget && box->gadget->type == GADGET_FILE) { colourtrans_set_font_colours(box->font->handle, -- cgit v1.2.3