summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2008-12-10 23:31:33 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2008-12-10 23:31:33 +0000
commit5737ea10b282fde600a4a6d5772e47bc12c05c77 (patch)
tree31d3eba52d8a673dc22a3b78547661ab5eeb457e /amiga
parenta121a3cd7370c97535f6bfc6ba090ed6aa5abb67 (diff)
downloadnetsurf-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')
-rwxr-xr-xamiga/bitmap.h4
-rwxr-xr-xamiga/plotters.c3
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 <exec/types.h>
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;xf<max_width;xf+=bitmap->width)
{
for(yf=0;yf<max_height;yf+=bitmap->height)