aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2014-12-24 22:26:23 +0200
committerFilippos Karapetis2014-12-24 22:56:55 +0200
commit1bc9b13357e36f6f52e3dd6f8223ab569e5b5362 (patch)
tree4e13aed710a2c244cc32697d98b165626c59dfac /engines
parentde2c9ed5bf9e3d41ad52de8aa0ddf383efa6b24d (diff)
downloadscummvm-rg350-1bc9b13357e36f6f52e3dd6f8223ab569e5b5362.tar.gz
scummvm-rg350-1bc9b13357e36f6f52e3dd6f8223ab569e5b5362.tar.bz2
scummvm-rg350-1bc9b13357e36f6f52e3dd6f8223ab569e5b5362.zip
ZVISION: Introduce pixel formats for resources (555) and screen (565)
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/zvision.cpp8
-rw-r--r--engines/zvision/zvision.h2
2 files changed, 7 insertions, 3 deletions
diff --git a/engines/zvision/zvision.cpp b/engines/zvision/zvision.cpp
index cf7ed288d7..145b2ebeac 100644
--- a/engines/zvision/zvision.cpp
+++ b/engines/zvision/zvision.cpp
@@ -82,6 +82,8 @@ ZVision::ZVision(OSystem *syst, const ZVisionGameDescription *gameDesc)
: Engine(syst),
_gameDescription(gameDesc),
_pixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0), /*RGB 565*/
+ _resourcePixelFormat(2, 5, 5, 5, 0, 10, 5, 0, 0), /* RGB 555 */
+ _screenPixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0), /* RGB 565 */
_desiredFrameTime(33), /* ~30 fps */
_clock(_system),
_scriptManager(nullptr),
@@ -182,17 +184,17 @@ void ZVision::initialize() {
} else if (_gameDescription->gameId == GID_NEMESIS)
_searchManager->loadZix("NEMESIS.ZIX");
- initGraphics(WINDOW_WIDTH, WINDOW_HEIGHT, true, &_pixelFormat);
+ initGraphics(WINDOW_WIDTH, WINDOW_HEIGHT, true, &_screenPixelFormat);
// Register random source
_rnd = new Common::RandomSource("zvision");
// Create managers
_scriptManager = new ScriptManager(this);
- _renderManager = new RenderManager(this, WINDOW_WIDTH, WINDOW_HEIGHT, _workingWindow, _pixelFormat);
+ _renderManager = new RenderManager(this, WINDOW_WIDTH, WINDOW_HEIGHT, _workingWindow, _screenPixelFormat);
_saveManager = new SaveManager(this);
_stringManager = new StringManager(this);
- _cursorManager = new CursorManager(this, &_pixelFormat);
+ _cursorManager = new CursorManager(this, &_screenPixelFormat);
_textRenderer = new TextRenderer(this);
_midiManager = new MidiManager();
diff --git a/engines/zvision/zvision.h b/engines/zvision/zvision.h
index 7ea10ed64d..a63b66f70f 100644
--- a/engines/zvision/zvision.h
+++ b/engines/zvision/zvision.h
@@ -69,6 +69,8 @@ public:
*/
Common::Rect _workingWindow;
const Graphics::PixelFormat _pixelFormat;
+ const Graphics::PixelFormat _resourcePixelFormat;
+ const Graphics::PixelFormat _screenPixelFormat;
private:
enum {