From 552aab42e16689c24ac566913b02c7613bfc090b Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 2 Aug 2019 12:25:35 +0100 Subject: remove scaled parameter from get_dimensions --- frontends/gtk/window.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'frontends/gtk') diff --git a/frontends/gtk/window.c b/frontends/gtk/window.c index 0a2dac107..aab4597dc 100644 --- a/frontends/gtk/window.c +++ b/frontends/gtk/window.c @@ -1213,14 +1213,11 @@ static void gui_window_place_caret(struct gui_window *g, int x, int y, int heigh * \param gw The gui window to measure content area of. * \param width receives width of window * \param height receives height of window - * \param scaled whether to return scaled values * \return NSERROR_OK on sucess and width and height updated * else error code. */ 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) { GtkAllocation alloc; @@ -1230,12 +1227,6 @@ gui_window_get_dimensions(struct gui_window *gw, *width = alloc.width; *height = alloc.height; - if (scaled) { - float scale = browser_window_get_scale(gw->bw); - *width /= scale; - *height /= scale; - } - return NSERROR_OK; } -- cgit v1.2.3