aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/transitions.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/transitions.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/transitions.cpp')
-rw-r--r--engines/sci/graphics/transitions.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/sci/graphics/transitions.cpp b/engines/sci/graphics/transitions.cpp
index c5cac0be89..77843d626f 100644
--- a/engines/sci/graphics/transitions.cpp
+++ b/engines/sci/graphics/transitions.cpp
@@ -102,7 +102,7 @@ static const GuiTransitionTranslateEntry blackoutTransitionIDs[] = {
};
void Transitions::init() {
- _oldScreen = new byte[_screen->_displayHeight * _screen->_displayWidth];
+ _oldScreen = new byte[_screen->getDisplayHeight() * _screen->getDisplayWidth()];
if (getSciVersion() >= SCI_VERSION_1_LATE)
_translationTable = NULL;
@@ -170,7 +170,7 @@ void Transitions::doit(Common::Rect picRect) {
// Now we do the actual transition to the new screen
doTransition(_number, false);
- if (picRect.bottom != _screen->_height) {
+ if (picRect.bottom != _screen->getHeight()) {
// TODO: this is a workaround for lsl6 not showing menubar when playing
// There is some new code in the sierra sci in ShowPic that seems to do something similar to this
_screen->copyToScreen();
@@ -305,10 +305,10 @@ void Transitions::pixelation (bool blackoutFlag) {
do {
mask = (mask & 1) ? (mask >> 1) ^ 0xB400 : mask >> 1;
- if (mask >= _screen->_width * _screen->_height)
+ if (mask >= _screen->getWidth() * _screen->getHeight())
continue;
- pixelRect.left = mask % _screen->_width; pixelRect.right = pixelRect.left + 1;
- pixelRect.top = mask / _screen->_width; pixelRect.bottom = pixelRect.top + 1;
+ pixelRect.left = mask % _screen->getWidth(); pixelRect.right = pixelRect.left + 1;
+ pixelRect.top = mask / _screen->getWidth(); pixelRect.bottom = pixelRect.top + 1;
pixelRect.clip(_picRect);
if (!pixelRect.isEmpty())
copyRectToScreen(pixelRect, blackoutFlag);
@@ -403,7 +403,7 @@ void Transitions::scroll(int16 number) {
Common::Rect newScreenRect = _picRect;
_screen->copyFromScreen(_oldScreen);
- screenWidth = _screen->_displayWidth; screenHeight = _screen->_displayHeight;
+ screenWidth = _screen->getDisplayWidth(); screenHeight = _screen->getDisplayHeight();
oldScreenPtr = _oldScreen + _picRect.left + _picRect.top * screenWidth;