diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-08-02 12:25:35 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-08-02 12:26:20 +0100 |
commit | 552aab42e16689c24ac566913b02c7613bfc090b (patch) | |
tree | 76af19cc73daaa1a5b85bab002ce730b315c0fbc /frontends/amiga | |
parent | 4ae27a65929a5fe333dc9f9f0d43ac91a72a0116 (diff) | |
download | netsurf-552aab42e16689c24ac566913b02c7613bfc090b.tar.gz netsurf-552aab42e16689c24ac566913b02c7613bfc090b.tar.bz2 |
remove scaled parameter from get_dimensions
Diffstat (limited to 'frontends/amiga')
-rw-r--r-- | frontends/amiga/gui.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index f5a7cadea..0b4ae7a7b 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -2076,14 +2076,17 @@ static void ami_gui_menu_update_all(void) * \return NSERROR_OK on sucess and width and height updated * else error code. */ -static nserror gui_window_get_dimensions(struct gui_window *gw, - int *restrict width, int *restrict height, bool scaled) +static nserror +gui_window_get_dimensions(struct gui_window *gw, + int *restrict width, + int *restrict height) { struct IBox *bbox; nserror res; - res = ami_gui_get_space_box((Object *)gw->shared->objects[GID_BROWSER], &bbox); - if(res != NSERROR_OK) { + res = ami_gui_get_space_box((Object *)gw->shared->objects[GID_BROWSER], + &bbox); + if (res != NSERROR_OK) { amiga_warn_user("NoMemory", ""); return res; } @@ -2093,11 +2096,6 @@ static nserror gui_window_get_dimensions(struct gui_window *gw, ami_gui_free_space_box(bbox); - if(scaled) { - *width /= gw->scale; - *height /= gw->scale; - } - return NSERROR_OK; } |