diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-12-10 23:31:33 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-12-10 23:31:33 +0000 |
commit | 5737ea10b282fde600a4a6d5772e47bc12c05c77 (patch) | |
tree | 31d3eba52d8a673dc22a3b78547661ab5eeb457e /amiga/plotters.c | |
parent | a121a3cd7370c97535f6bfc6ba090ed6aa5abb67 (diff) | |
download | netsurf-5737ea10b282fde600a4a6d5772e47bc12c05c77.tar.gz netsurf-5737ea10b282fde600a4a6d5772e47bc12c05c77.tar.bz2 |
Fix bitmap tile plotter so tiled bitmaps continue out of the inital visible area.
svn path=/trunk/netsurf/; revision=5899
Diffstat (limited to 'amiga/plotters.c')
-rwxr-xr-x | amiga/plotters.c | 3 |
1 files changed, 3 insertions, 0 deletions
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;xf<max_width;xf+=bitmap->width) { for(yf=0;yf<max_height;yf+=bitmap->height) |