diff options
author | Iskrich | 2016-05-18 04:07:14 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | c2414ae3815e92b768f194c8e353405e6b532919 (patch) | |
tree | da12a49bfef4075e2140fa48612c1f5d50133c57 /engines/director/director.cpp | |
parent | 75a01e0ea096c17bb6809140c3c69026362ccbe2 (diff) | |
download | scummvm-rg350-c2414ae3815e92b768f194c8e353405e6b532919.tar.gz scummvm-rg350-c2414ae3815e92b768f194c8e353405e6b532919.tar.bz2 scummvm-rg350-c2414ae3815e92b768f194c8e353405e6b532919.zip |
DIRECTOR: Display test bitmap resource
Diffstat (limited to 'engines/director/director.cpp')
-rw-r--r-- | engines/director/director.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/director/director.cpp b/engines/director/director.cpp index 0ddb8a7350..f64af75cea 100644 --- a/engines/director/director.cpp +++ b/engines/director/director.cpp @@ -34,6 +34,7 @@ #include "director/director.h" #include "director/resource.h" +#include "graphics/surface.h" namespace Director { @@ -55,10 +56,14 @@ DirectorEngine::DirectorEngine(OSystem *syst, const DirectorGameDescription *gam RIFFArchive riff; riff.openFile("bookshelf_example.mmm"); Director::DIBDecoder img; - Common::SeekableReadStream *dib = riff.getResource(MKTAG('D', 'I', 'B', ' '), 1103); - img.loadStream(*dib); + Common::SeekableReadStream *pal = riff.getResource(MKTAG('C', 'L', 'U', 'T'), 1025); img.loadPalette(*pal); + + Common::SeekableReadStream *dib = riff.getResource(MKTAG('D', 'I', 'B', ' '), 1103); + img.loadStream(*dib); + + } DirectorEngine::~DirectorEngine() { |