From 5737ea10b282fde600a4a6d5772e47bc12c05c77 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Wed, 10 Dec 2008 23:31:33 +0000 Subject: Fix bitmap tile plotter so tiled bitmaps continue out of the inital visible area. svn path=/trunk/netsurf/; revision=5899 --- amiga/bitmap.h | 4 ++-- amiga/plotters.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/amiga/bitmap.h b/amiga/bitmap.h index 8466bd0a3..1b77b6b19 100755 --- a/amiga/bitmap.h +++ b/amiga/bitmap.h @@ -20,8 +20,8 @@ #define AMIGA_BITMAP_H #include struct bitmap { - ULONG width; - ULONG height; + int width; + int height; UBYTE *pixdata; }; diff --git a/amiga/plotters.c b/amiga/plotters.c index 8c51dc95d..eeb67038e 100755 --- a/amiga/plotters.c +++ b/amiga/plotters.c @@ -309,6 +309,9 @@ bool ami_bitmap_tile(int x, int y, int width, int height, max_width = (repeat_x ? scrn->Width : width); max_height = (repeat_y ? scrn->Height : height); + if(repeat_x && (x<-bitmap->width)) while(x<-bitmap->width) x+=bitmap->width; + if(repeat_y && (y<-bitmap->height)) while(y<-bitmap->height) y+=bitmap->height; + for(xf=0;xfwidth) { for(yf=0;yfheight) -- cgit v1.2.3