Skip to content

Commit

Permalink
DIRECTOR: Improvements to 1bpp image rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 22, 2016
1 parent 2a75e90 commit eca3ef7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions engines/director/images.cpp
Expand Up @@ -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());

Expand Down

0 comments on commit eca3ef7

Please sign in to comment.