diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/avalanche/celer2.cpp | 6 | ||||
-rw-r--r-- | engines/avalanche/graphics.cpp | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/engines/avalanche/celer2.cpp b/engines/avalanche/celer2.cpp index 4d4a1fa872..061eb6b212 100644 --- a/engines/avalanche/celer2.cpp +++ b/engines/avalanche/celer2.cpp @@ -306,10 +306,10 @@ void Celer::load_chunks(Common::String xx) { if (ch.natural) { memos[fv].flavour = ch_natural_image; // We simply read from the screen and later, in display_it() we draw it right back. - memos[fv].size = memos[fv].xl * 8 * memos[fv].yl; - memory[fv].create(memos[fv].xl * 8, memos[fv].yl, ::Graphics::PixelFormat::createFormatCLUT8()); + memos[fv].size = memos[fv].xl * 8 * memos[fv].yl + 1; + memory[fv].create(memos[fv].xl * 8, memos[fv].yl + 1, ::Graphics::PixelFormat::createFormatCLUT8()); - for (uint16 j = 0; j < memos[fv].yl; j++) + for (uint16 j = 0; j < memos[fv].yl + 1; j++) for (uint16 i = 0; i < memos[fv].xl * 8; i++) *(byte *)memory[fv].getBasePtr(i, j) = *_vm->_graphics->getPixel(memos[fv].x * 8 + i, memos[fv].y + j); } else { diff --git a/engines/avalanche/graphics.cpp b/engines/avalanche/graphics.cpp index 6338893dbf..957468044c 100644 --- a/engines/avalanche/graphics.cpp +++ b/engines/avalanche/graphics.cpp @@ -86,8 +86,6 @@ void Graphics::drawBar(int16 x1, int16 y1, int16 x2, int16 y2, int16 color) { } void Graphics::drawSprite(const SpriteInfo &sprite, byte picnum, int16 x, int16 y) { - drawPicture(_background, 0, 10); - /* First we make the pixels of the spirte blank. */ for (byte qay = 0; qay < sprite.yl; qay++) { byte *mask = new byte[sprite.xl]; |