Fix the plotting of tiled bitmaps. EraseRect() appears to have a bug where it won't

draw anything if ymin==ymax

svn path=/trunk/netsurf/; revision=13074
This commit is contained in:
Chris Young 2011-10-22 14:16:03 +00:00
parent a7f2cfa521
commit 35bc321993
1 changed files with 3 additions and 0 deletions

View File

@ -705,6 +705,9 @@ bool ami_bitmap_tile(int x, int y, int width, int height,
InstallLayerHook(glob->rp->Layer,bfh);
if(xm == xf) xf += 1;
if(ym == yf) yf += 1;
EraseRect(glob->rp,xm,ym,xf,yf);
InstallLayerHook(glob->rp->Layer,LAYERS_NOBACKFILL);