diff options
author | Adrian Lees <adrian@aemulor.com> | 2005-04-17 23:32:09 +0000 |
---|---|---|
committer | Adrian Lees <adrian@aemulor.com> | 2005-04-17 23:32:09 +0000 |
commit | 89d98d057772721036504bd5edc8446d5d592234 (patch) | |
tree | b6d507a7bd6a93472c4e8daec36a067715b2cb49 /riscos/window.c | |
parent | f3f63a1cac19ee1833965e77f7fbc3d6326bd25b (diff) | |
download | netsurf-89d98d057772721036504bd5edc8446d5d592234.tar.gz netsurf-89d98d057772721036504bd5edc8446d5d592234.tar.bz2 |
[project @ 2005-04-17 23:32:09 by adrianl]
better keyboard support for scale and find dialogs
svn path=/import/netsurf/; revision=1665
Diffstat (limited to 'riscos/window.c')
-rw-r--r-- | riscos/window.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/riscos/window.c b/riscos/window.c index f31c112ea..9c04494a1 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -1592,6 +1592,7 @@ bool ro_gui_window_keypress(struct gui_window *g, int key, bool toolbar) osbool unclaimed; /* Alphabet has changed, so read UCS table location */ alphabet = t_alphabet; + error = xserviceinternational_get_ucs_conversion_table( alphabet, &unclaimed, (void**)&ucstable); @@ -2451,3 +2452,21 @@ void ro_gui_window_scroll_end(struct gui_window *g, wimp_dragged *drag) ro_gui_mouse_click_state(pointer.buttons), x, y); } + +/** + * Alter the scale setting of a window + * + * \param g gui window + * \param scale scale value (1.0 == normal scale) + */ + +void ro_gui_window_set_scale(struct gui_window *g, float scale) +{ + struct content *c; + g->option.scale = scale; + g->reformat_pending = true; + c = g->bw->current_content; + if ((c) && (c->type != CONTENT_HTML)) + browser_window_update(g->bw, false); + gui_reformat_pending = true; +} |