diff options
author | Phil Mellor <phil@monkeyson.info> | 2002-12-30 02:06:03 +0000 |
---|---|---|
committer | Phil Mellor <phil@monkeyson.info> | 2002-12-30 02:06:03 +0000 |
commit | 33a91eb2febbc2e28581a17207d01a972c898504 (patch) | |
tree | c11e52273bc16d0988f41c1483bf9da502a01933 /riscos/gui.c | |
parent | 50fc20c2d4883b399fcee8c7a2905605304d9e40 (diff) | |
download | netsurf-33a91eb2febbc2e28581a17207d01a972c898504.tar.gz netsurf-33a91eb2febbc2e28581a17207d01a972c898504.tar.bz2 |
[project @ 2002-12-30 02:06:03 by monkeyson]
Started support for img tag - doesn't attempt to fetch/render images yet.
Combo boxes in forms.
svn path=/import/netsurf/; revision=72
Diffstat (limited to 'riscos/gui.c')
-rw-r--r-- | riscos/gui.c | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/riscos/gui.c b/riscos/gui.c index 04b6e10d1..552388701 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -1,5 +1,5 @@ /** - * $Id: gui.c,v 1.10 2002/12/29 22:27:35 monkeyson Exp $ + * $Id: gui.c,v 1.11 2002/12/30 02:06:03 monkeyson Exp $ */ #include "netsurf/riscos/font.h" @@ -506,7 +506,13 @@ void ro_gui_window_redraw_box(gui_window* g, struct box * box, signed long x, si current_background_color = box->style->background_color; } - if (box->gadget != 0) + if (box->img != 0) + { + colourtrans_set_gcol(os_COLOUR_LIGHT_GREY, 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); + } + else if (box->gadget != 0) { wimp_icon icon; fprintf(stderr, "writing GADGET\n"); @@ -543,6 +549,20 @@ void ro_gui_window_redraw_box(gui_window* g, struct box * box, signed long x, si fprintf(stderr, "writing GADGET ACTION\n"); wimp_plot_icon(&icon); break; + + case GADGET_SELECT: + icon.flags = wimp_ICON_TEXT | wimp_ICON_BORDER | + wimp_ICON_VCENTRED | wimp_ICON_FILLED | + wimp_ICON_INDIRECTED | wimp_ICON_HCENTRED | + (wimp_COLOUR_BLACK << wimp_ICON_FG_COLOUR_SHIFT) | + (wimp_COLOUR_VERY_LIGHT_GREY << wimp_ICON_BG_COLOUR_SHIFT); + icon.data.indirected_text.text = box->gadget->data.select.items->text; + icon.data.indirected_text.size = strlen(box->gadget->data.select.items->text); + icon.data.indirected_text.validation = "R2"; + fprintf(stderr, "writing GADGET ACTION\n"); + wimp_plot_icon(&icon); + break; + } } |