From 307b88e934a9607350d35ba7c8ea923b41e257b8 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 19 Oct 2008 13:44:01 +0000 Subject: Fixed bitmap tile plotter svn path=/trunk/netsurf/; revision=5601 --- amiga/plotters.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'amiga/plotters.c') 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;xfwidth) + max_width = (repeat_x ? scrn->Width : width); + max_height = (repeat_y ? scrn->Height: height); + + for(xf=0;xfwidth) { - for(yf=0;yfheight) + for(yf=0;yfheight) { if(width > xf+bitmap->width) { -- cgit v1.2.3