summaryrefslogtreecommitdiff
path: root/frontends/amiga/corewindow.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2017-02-13 18:16:22 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2017-02-13 18:16:22 +0000
commite38f4d2f1a2211ed03ac6418c460931194fa2870 (patch)
tree3108f42e2d931da80a49121c9bc6ff4c9e345cf2 /frontends/amiga/corewindow.c
parent593ec1fbeab32d598bc4cc5de42bb0887ad0d520 (diff)
downloadnetsurf-e38f4d2f1a2211ed03ac6418c460931194fa2870.tar.gz
netsurf-e38f4d2f1a2211ed03ac6418c460931194fa2870.tar.bz2
Get render bitmap size via function
Diffstat (limited to 'frontends/amiga/corewindow.c')
-rw-r--r--frontends/amiga/corewindow.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/frontends/amiga/corewindow.c b/frontends/amiga/corewindow.c
index e6293453c..5fc5c3736 100644
--- a/frontends/amiga/corewindow.c
+++ b/frontends/amiga/corewindow.c
@@ -219,8 +219,8 @@ ami_cw_redraw_rect(struct ami_corewindow *ami_cw, struct rect *r)
struct IBox *bbox;
ULONG pos_x, pos_y;
struct rect draw_rect;
- int tile_size_x = ami_cw->gg->width;
- int tile_size_y = ami_cw->gg->height;
+ int tile_size_x;
+ int tile_size_y;
int tile_x, tile_y, tile_w, tile_h;
int x = r->x0;
int y = r->y0;
@@ -254,6 +254,8 @@ ami_cw_redraw_rect(struct ami_corewindow *ami_cw, struct rect *r)
y = pos_y;
}
+ ami_plot_ra_get_size(ami_cw->gg, &tile_size_x, &tile_size_y);
+
for(tile_y = y; tile_y < (y + height); tile_y += tile_size_y) {
tile_h = tile_size_y;
if(((y + height) - tile_y) < tile_size_y)