summaryrefslogtreecommitdiff
path: root/frontends/framebuffer/gui.c
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/framebuffer/gui.c
parent4ae27a65929a5fe333dc9f9f0d43ac91a72a0116 (diff)
downloadnetsurf-552aab42e16689c24ac566913b02c7613bfc090b.tar.gz
netsurf-552aab42e16689c24ac566913b02c7613bfc090b.tar.bz2
remove scaled parameter from get_dimensions
Diffstat (limited to 'frontends/framebuffer/gui.c')
-rw-r--r--frontends/framebuffer/gui.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/frontends/framebuffer/gui.c b/frontends/framebuffer/gui.c
index 95e35fb30..74f6100a5 100644
--- a/frontends/framebuffer/gui.c
+++ b/frontends/framebuffer/gui.c
@@ -1881,23 +1881,14 @@ gui_window_set_scroll(struct gui_window *gw, const struct rect *rect)
* \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.
*/
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)
{
*width = fbtk_get_width(gw->browser);
*height = fbtk_get_height(gw->browser);
- if (scaled) {
- float scale = browser_window_get_scale(gw->bw);
- *width /= scale;
- *height /= scale;
- }
return NSERROR_OK;
}