aboutsummaryrefslogtreecommitdiff
path: root/engines/mortevielle/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mortevielle/graphics.cpp')
-rw-r--r--engines/mortevielle/graphics.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/mortevielle/graphics.cpp b/engines/mortevielle/graphics.cpp
index fec2cfbf6b..5bf3aedc99 100644
--- a/engines/mortevielle/graphics.cpp
+++ b/engines/mortevielle/graphics.cpp
@@ -996,7 +996,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_vm->_res == 1) {
+ if (g_vm->_resolutionScaler == 1) {
x = (uint)x >> 1;
dx = (uint)dx >> 1;
}
@@ -1063,7 +1063,7 @@ void ScreenSurface::drawString(const Common::String &l, int command) {
g_vm->_mouse.hideMouse();
pt = _textPos;
- if (g_vm->_res == 2)
+ if (g_vm->_resolutionScaler == 2)
i = 6;
else
i = 10;
@@ -1105,7 +1105,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_vm->_res == 2) ? 6 : 10;
+ int charWidth = (g_vm->_resolutionScaler == 2) ? 6 : 10;
return s.size() * charWidth;
}