diff options
author | Strangerke | 2012-03-23 23:26:27 +0100 |
---|---|---|
committer | Strangerke | 2012-04-06 08:23:45 +0200 |
commit | cdcb8d3645e86cac1f42ee5015b67521129efaf7 (patch) | |
tree | 4793b8268531697c839f73a98c93bca1809f8f4e /engines/mortevielle/graphics.cpp | |
parent | 0111cea7d7b9164125cb6163050d1ddfcc1335f8 (diff) | |
download | scummvm-rg350-cdcb8d3645e86cac1f42ee5015b67521129efaf7.tar.gz scummvm-rg350-cdcb8d3645e86cac1f42ee5015b67521129efaf7.tar.bz2 scummvm-rg350-cdcb8d3645e86cac1f42ee5015b67521129efaf7.zip |
MORTEVIELLE: More renaming, add a piece of code to improve CGA/EGA switching
Diffstat (limited to 'engines/mortevielle/graphics.cpp')
-rw-r--r-- | engines/mortevielle/graphics.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/mortevielle/graphics.cpp b/engines/mortevielle/graphics.cpp index 2e9e0195a6..42dd3c7cc7 100644 --- a/engines/mortevielle/graphics.cpp +++ b/engines/mortevielle/graphics.cpp @@ -992,7 +992,7 @@ void ScreenSurface::writeCharacter(const Common::Point &pt, unsigned char ch, in * simulate the original 640x400 surface, all Y values have to be doubled */ void ScreenSurface::drawBox(int x, int y, int dx, int dy, int col) { - if (g_res == 1) { + if (g_vm->_res == 1) { x = (uint)x >> 1; dx = (uint)dx >> 1; } @@ -1059,7 +1059,7 @@ void ScreenSurface::drawString(const Common::String &l, int command) { g_vm->_mouse.hideMouse(); pt = _textPos; - if (g_res == 2) + if (g_vm->_res == 2) i = 6; else i = 10; @@ -1101,7 +1101,7 @@ void ScreenSurface::drawString(const Common::String &l, int command) { * Gets the width in pixels of the specified string */ int ScreenSurface::getStringWidth(const Common::String &s) { - int charWidth = (g_res == 2) ? 6 : 10; + int charWidth = (g_vm->_res == 2) ? 6 : 10; return s.size() * charWidth; } |