diff options
Diffstat (limited to 'engines/mohawk/graphics.cpp')
-rw-r--r-- | engines/mohawk/graphics.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/mohawk/graphics.cpp b/engines/mohawk/graphics.cpp index 3166b6c431..656a6fad01 100644 --- a/engines/mohawk/graphics.cpp +++ b/engines/mohawk/graphics.cpp @@ -25,17 +25,20 @@ #include "mohawk/resource.h" #include "mohawk/graphics.h" -#include "mohawk/myst.h" #include "mohawk/riven.h" #include "mohawk/livingbooks.h" #include "mohawk/cstime.h" #include "common/substream.h" #include "engines/util.h" -#include "graphics/jpeg.h" #include "graphics/primitives.h" #include "gui/message.h" +#ifdef ENABLE_MYST +#include "mohawk/myst.h" +#include "graphics/jpeg.h" +#endif + namespace Mohawk { MohawkSurface::MohawkSurface() : _surface(0), _palette(0) { @@ -253,6 +256,8 @@ void GraphicsManager::addImageToCache(uint16 id, MohawkSurface *surface) { _cache[id] = surface; } +#ifdef ENABLE_MYST + MystGraphics::MystGraphics(MohawkEngine_Myst* vm) : GraphicsManager(), _vm(vm) { _bmpDecoder = new MystBitmap(); @@ -618,6 +623,8 @@ void MystGraphics::drawLine(const Common::Point &p1, const Common::Point &p2, ui _backBuffer->drawLine(p1.x, p1.y, p2.x, p2.y, color); } +#endif + RivenGraphics::RivenGraphics(MohawkEngine_Riven* vm) : GraphicsManager(), _vm(vm) { _bitmapDecoder = new MohawkBitmap(); |