summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2008-10-19 13:44:01 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2008-10-19 13:44:01 +0000
commit307b88e934a9607350d35ba7c8ea923b41e257b8 (patch)
treecd144f2b19e44c952ea458e2af86268edc2e09d4 /amiga
parentc20560d25037ec070799e6f7d57069ba675ec82a (diff)
downloadnetsurf-307b88e934a9607350d35ba7c8ea923b41e257b8.tar.gz
netsurf-307b88e934a9607350d35ba7c8ea923b41e257b8.tar.bz2
Fixed bitmap tile plotter
svn path=/trunk/netsurf/; revision=5601
Diffstat (limited to 'amiga')
-rwxr-xr-xamiga/plotters.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c
index 189eb8da4..65b70135c 100755
--- a/amiga/plotters.c
+++ b/amiga/plotters.c
@@ -297,8 +297,7 @@ bool ami_bitmap_tile(int x, int y, int width, int height,
{
struct RenderInfo ri;
ULONG xf,yf,wf,hf;
-
-//DebugPrintF("bitmap tile plotter\n");
+ int max_width,max_height;
SetRPAttrs(currp,RPTAG_BPenColor,p96EncodeColor(RGBFB_A8B8G8R8,bg),
TAG_DONE);
@@ -307,13 +306,12 @@ bool ami_bitmap_tile(int x, int y, int width, int height,
ri.BytesPerRow = bitmap->width * 4;
ri.RGBFormat = RGBFB_R8G8B8A8;
-/*
-if(repeat_x) printf("repeatx\n");
-if(repeat_y) printf("repeaty\n");
-*/
- for(xf=0;xf<width;xf+=bitmap->width)
+ max_width = (repeat_x ? scrn->Width : width);
+ max_height = (repeat_y ? scrn->Height: height);
+
+ for(xf=0;xf<max_width;xf+=bitmap->width)
{
- for(yf=0;yf<height;yf+=bitmap->height)
+ for(yf=0;yf<max_height;yf+=bitmap->height)
{
if(width > xf+bitmap->width)
{