aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/cursor.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2010-01-06 13:05:14 +0000
committerMartin Kiewitz2010-01-06 13:05:14 +0000
commit7d7d23ce2b8d7d2a4725303d893f273f366be18c (patch)
tree3f2a2f7cea3e9c839c56140cf4fefd4aefe5303c /engines/sci/graphics/cursor.cpp
parent86c1171b11edcfe28dab7a3ba282e8e75060b01c (diff)
downloadscummvm-rg350-7d7d23ce2b8d7d2a4725303d893f273f366be18c.tar.gz
scummvm-rg350-7d7d23ce2b8d7d2a4725303d893f273f366be18c.tar.bz2
scummvm-rg350-7d7d23ce2b8d7d2a4725303d893f273f366be18c.zip
SCI: making most of the variables in screen class private (some of it was needed for old gui)
svn-id: r47075
Diffstat (limited to 'engines/sci/graphics/cursor.cpp')
-rw-r--r--engines/sci/graphics/cursor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/graphics/cursor.cpp b/engines/sci/graphics/cursor.cpp
index 4682fd42a6..fda017341e 100644
--- a/engines/sci/graphics/cursor.cpp
+++ b/engines/sci/graphics/cursor.cpp
@@ -41,8 +41,8 @@ Cursor::Cursor(ResourceManager *resMan, SciPalette *palette, Screen *screen)
_upscaledHires = _screen->getUpscaledHires();
// center mouse cursor
- setPosition(Common::Point(_screen->_displayWidth / 2, _screen->_displayHeight / 2));
- setMoveZone(Common::Rect(0, 0, _screen->_displayWidth, _screen->_displayHeight));
+ setPosition(Common::Point(_screen->getDisplayWidth() / 2, _screen->getDisplayHeight() / 2));
+ setMoveZone(Common::Rect(0, 0, _screen->getDisplayWidth(), _screen->getDisplayHeight()));
_isVisible = true;
}
@@ -109,7 +109,7 @@ void Cursor::setShape(GuiResourceId resourceId) {
// Now find out what colors we are supposed to use
colorMapping[0] = 0; // Black is hardcoded
- colorMapping[1] = _screen->_colorWhite; // White is also hardcoded
+ colorMapping[1] = _screen->getColorWhite(); // White is also hardcoded
colorMapping[2] = SCI_CURSOR_SCI0_TRANSPARENCYCOLOR;
colorMapping[3] = _palette->matchColor(&_palette->_sysPalette, 170, 170, 170); // Grey