diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-08-03 15:53:07 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-08-03 15:53:07 +0100 |
commit | 641f5fb07204a9deb256557902707cd28182463d (patch) | |
tree | 1f2cc6fc09ba52b3d92545629ecb6d6a0467affd /frontends/amiga | |
parent | 402e16e5d1e88a3844b900c485d9fc7c4093f2ab (diff) | |
download | netsurf-641f5fb07204a9deb256557902707cd28182463d.tar.gz netsurf-641f5fb07204a9deb256557902707cd28182463d.tar.bz2 |
make use of improved browser_window_set_scale API in frontends
Diffstat (limited to 'frontends/amiga')
-rw-r--r-- | frontends/amiga/gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index adce7dd0b..54273ee54 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -3927,14 +3927,14 @@ int ami_gui_count_windows(int window, int *tabs) */ void ami_gui_set_scale(struct gui_window *gw, float scale) { - if(scale <= 0.0) return; - gw->scale = scale; browser_window_set_scale(gw->bw, scale, true); + gw->scale = browser_window_get_scale(gw->bw); } void ami_gui_adjust_scale(struct gui_window *gw, float adjustment) { - ami_gui_set_scale(gw, gw->scale + adjustment); + browser_window_set_scale(gw->bw, adjustment, false); + gw->scale = browser_window_get_scale(gw->bw); } void ami_gui_switch_to_new_tab(struct gui_window_2 *gwin) |