path: root/include
diff options
authorVincent Sanders <>2019-08-03 14:26:55 +0100
committerVincent Sanders <>2019-08-03 15:50:43 +0100
commit402e16e5d1e88a3844b900c485d9fc7c4093f2ab (patch)
tree7a46b3159c1edeba5f178134539b2c564c6095fe /include
parentd4c01894c21559cd4199c0f15b9e8b7bec4b692c (diff)
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.
Diffstat (limited to 'include')
1 files changed, 3 insertions, 2 deletions
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);