TINYGL: Fixed a bug in tglBlitRLE that disregarded destination position.

This commit is contained in:
Stefano Musumeci 2014-07-14 18:11:51 +02:00
parent d5b137b507
commit c7e70710b3

View file

@ -167,6 +167,7 @@ void tglBlitRLE(BlitImage *blitImage, int dstX, int dstY, int srcX, int srcY, in
srcBuf.shiftBy(srcX + (srcY * blitImage->_surface.w));
Graphics::PixelBuffer dstBuf(c->fb->cmode, c->fb->getPixelBuffer());
dstBuf.shiftBy(dstY * c->fb->xsize + dstX);
const int kBytesPerPixel = 2;