From eca3ef76e653fb4120e575f9458fa94c139662ef Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 22 Aug 2016 18:44:10 +0200 Subject: DIRECTOR: Improvements to 1bpp image rendering --- engines/director/images.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engines/director/images.cpp b/engines/director/images.cpp index 67ffb5d700..a339ce7804 100644 --- a/engines/director/images.cpp +++ b/engines/director/images.cpp @@ -113,6 +113,10 @@ bool DIBDecoder::loadStream(Common::SeekableReadStream &stream) { ****************************/ BITDDecoder::BITDDecoder(int w, int h) { + int oldw = w; + w += 8 - (w + 7) % 8; + + warning("W: %d -> %d, %d", oldw, w, h); _surface = new Graphics::Surface(); _surface->create(w, h, Graphics::PixelFormat::createFormatCLUT8()); -- cgit v1.2.3