summaryrefslogtreecommitdiff
path: root/frontends/riscos
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-08-02 12:25:35 +0100
committerVincent Sanders <vince@kyllikki.org>2019-08-02 12:26:20 +0100
commit552aab42e16689c24ac566913b02c7613bfc090b (patch)
tree76af19cc73daaa1a5b85bab002ce730b315c0fbc /frontends/riscos
parent4ae27a65929a5fe333dc9f9f0d43ac91a72a0116 (diff)
downloadnetsurf-552aab42e16689c24ac566913b02c7613bfc090b.tar.gz
netsurf-552aab42e16689c24ac566913b02c7613bfc090b.tar.bz2
remove scaled parameter from get_dimensions
Diffstat (limited to 'frontends/riscos')
-rw-r--r--frontends/riscos/window.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/frontends/riscos/window.c b/frontends/riscos/window.c
index 53a7b586a..b949c02ef 100644
--- a/frontends/riscos/window.c
+++ b/frontends/riscos/window.c
@@ -3679,21 +3679,15 @@ gui_window_set_scroll(struct gui_window *g, const struct rect *rect)
* \param gw gui window to measure
* \param width receives width of window
* \param height receives height of window
- * \param scaled whether to return scaled values
+ * \return NSERROR_OK and width and height updated
*/
static nserror
-gui_window_get_dimensions(struct gui_window *gw,
- int *width, int *height,
- bool scaled)
+gui_window_get_dimensions(struct gui_window *gw, int *width, int *height)
{
/* use the cached window sizes */
*width = gw->old_width / 2;
*height = gw->old_height / 2;
- if (scaled) {
- *width /= gw->scale;
- *height /= gw->scale;
- }
return NSERROR_OK;
}