diff options
author | Eugene Sandulenko | 2016-08-22 18:44:10 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-22 19:16:43 +0200 |
commit | eca3ef76e653fb4120e575f9458fa94c139662ef (patch) | |
tree | f214aa3a69a9aa794af5a6e3f8b22c14f924ecb2 | |
parent | 2a75e90ba2740fa3f3bad30e18470fd91e95486f (diff) | |
download | scummvm-rg350-eca3ef76e653fb4120e575f9458fa94c139662ef.tar.gz scummvm-rg350-eca3ef76e653fb4120e575f9458fa94c139662ef.tar.bz2 scummvm-rg350-eca3ef76e653fb4120e575f9458fa94c139662ef.zip |
DIRECTOR: Improvements to 1bpp image rendering
-rw-r--r-- | engines/director/images.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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()); |