mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
Special case for screen-wide blits
svn-id: r8626
This commit is contained in:
parent
098b60beeb
commit
73f2ea0b94
@ -506,11 +506,16 @@ void Scumm::blit(byte *dst, const byte *src, int w, int h) {
|
||||
assert(src != NULL);
|
||||
assert(dst != NULL);
|
||||
|
||||
do {
|
||||
memcpy(dst, src, w);
|
||||
dst += _screenWidth;
|
||||
src += _screenWidth;
|
||||
} while (--h);
|
||||
if (w==_screenWidth)
|
||||
memcpy (dst, src, w*h);
|
||||
else
|
||||
{
|
||||
do {
|
||||
memcpy(dst, src, w);
|
||||
dst += _screenWidth;
|
||||
src += _screenWidth;
|
||||
} while (--h);
|
||||
}
|
||||
}
|
||||
|
||||
void Scumm::drawBox(int x, int y, int x2, int y2, int color) {
|
||||
|
Loading…
Reference in New Issue
Block a user