From 402e16e5d1e88a3844b900c485d9fc7c4093f2ab Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 3 Aug 2019 14:26:55 +0100 Subject: improve browser_window_set_scale Allow scale setting to use an absolute value or a relative value. This also imposes sanity limits on the scale range (currently 0.2 to 10.0) and removes the old junk "all" parameter. --- include/netsurf/browser_window.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/netsurf') diff --git a/include/netsurf/browser_window.h b/include/netsurf/browser_window.h index 8b5f56c3d..a14545f23 100644 --- a/include/netsurf/browser_window.h +++ b/include/netsurf/browser_window.h @@ -337,9 +337,10 @@ void browser_window_reformat(struct browser_window *bw, bool background, int wid * * \param bw The browser window to scale. * \param scale The new scale. - * \param all Scale all windows in the tree (ie work up as well as down) + * \param absolute If the scale value is absolute or relative to current value + * \return NSERROR_OK and scale applied else other error code caused by reflow etc. */ -void browser_window_set_scale(struct browser_window *bw, float scale, bool all); +nserror browser_window_set_scale(struct browser_window *bw, float scale, bool absolute); /** -- cgit v1.2.3