diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2017-02-13 18:16:22 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2017-02-13 18:16:22 +0000 |
commit | e38f4d2f1a2211ed03ac6418c460931194fa2870 (patch) | |
tree | 3108f42e2d931da80a49121c9bc6ff4c9e345cf2 /frontends/amiga/gui.c | |
parent | 593ec1fbeab32d598bc4cc5de42bb0887ad0d520 (diff) | |
download | netsurf-e38f4d2f1a2211ed03ac6418c460931194fa2870.tar.gz netsurf-e38f4d2f1a2211ed03ac6418c460931194fa2870.tar.bz2 |
Get render bitmap size via function
Diffstat (limited to 'frontends/amiga/gui.c')
-rw-r--r-- | frontends/amiga/gui.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index 973f4e787..a8a1265d9 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -3524,8 +3524,10 @@ static void ami_do_redraw_tiled(struct gui_window_2 *gwin, bool busy, struct gui_globals *glob = (struct gui_globals *)ctx->priv; int x, y; struct rect clip; - int tile_size_x = glob->width; - int tile_size_y = glob->height; + int tile_size_x; + int tile_size_y; + + ami_plot_ra_get_size(glob, &tile_size_x, &tile_size_y); int tile_x_scale = (int)(tile_size_x / gwin->gw->scale); int tile_y_scale = (int)(tile_size_y / gwin->gw->scale); |