summaryrefslogtreecommitdiff
path: root/frontends/gtk
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/gtk
parent4ae27a65929a5fe333dc9f9f0d43ac91a72a0116 (diff)
downloadnetsurf-552aab42e16689c24ac566913b02c7613bfc090b.tar.gz
netsurf-552aab42e16689c24ac566913b02c7613bfc090b.tar.bz2
remove scaled parameter from get_dimensions
Diffstat (limited to 'frontends/gtk')
-rw-r--r--frontends/gtk/window.c11
1 files changed, 1 insertions, 10 deletions
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;
}