From 7d7d23ce2b8d7d2a4725303d893f273f366be18c Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Wed, 6 Jan 2010 13:05:14 +0000 Subject: SCI: making most of the variables in screen class private (some of it was needed for old gui) svn-id: r47075 --- engines/sci/graphics/cursor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/sci/graphics/cursor.cpp') 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 -- cgit v1.2.3