Pass tilePosX/Y also to PaintTile()

Change-Id: I85360889bf723fa8b603dfbe7a6f99d99c70c72f
This commit is contained in:
Tor Lillqvist
2013-11-01 14:23:45 +02:00
committed by Jan Holesovsky
parent 1974d99b60
commit 91e4e3338a

View File

@@ -1812,7 +1812,7 @@ void touch_lo_draw_tile(void *context, int contextWidth, int contextHeight, MLOD
// resizes the virtual device so to contain the entrie context
aDevice.SetOutputSizePixel(Size(contextWidth, contextHeight));
// draw - works in logic coordinates
pViewShell->PaintTile(&aDevice, Rectangle(Point(0, 0), Size(tileWidth, tileHeight)));
pViewShell->PaintTile(&aDevice, Rectangle(Point(tilePosX, tilePosY), Size(tileWidth, tileHeight)));
// copy the aDevice content to mpImage
Bitmap aBitmap(aDevice.GetBitmap(aDevice.PixelToLogic(Point(0,0)), aDevice.PixelToLogic(Size(contextWidth, contextHeight))));
BitmapReadAccess * readAccess = aBitmap.AcquireReadAccess();