diff options
author | Filippos Karapetis | 2013-08-19 03:08:11 +0300 |
---|---|---|
committer | Filippos Karapetis | 2013-08-19 03:08:58 +0300 |
commit | d531484350291f037c896c05fdaf691231ef3c04 (patch) | |
tree | be07e362767f156842dac5353522dd7b4b16c555 /engines/drascula/graphics.cpp | |
parent | d17dcc1cbed57b0c6861b5b0c91106aa26aa6b83 (diff) | |
download | scummvm-rg350-d531484350291f037c896c05fdaf691231ef3c04.tar.gz scummvm-rg350-d531484350291f037c896c05fdaf691231ef3c04.tar.bz2 scummvm-rg350-d531484350291f037c896c05fdaf691231ef3c04.zip |
DRASCULA: Some renaming. Also, get rid of some extraneous globals
This removes the superfluous talkHeight, talkWidth and timeDiff
variables. It also changes _loadedDifferentChapter to be a boolean
Diffstat (limited to 'engines/drascula/graphics.cpp')
-rw-r--r-- | engines/drascula/graphics.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/drascula/graphics.cpp b/engines/drascula/graphics.cpp index 31d03a94a7..b28de669b6 100644 --- a/engines/drascula/graphics.cpp +++ b/engines/drascula/graphics.cpp @@ -82,7 +82,7 @@ void DrasculaEngine::moveCursor() { } else if (!_menuScreen && _color != kColorLightGreen) color_abc(kColorLightGreen); if (_hasName && !_menuScreen) - centerText(textName, mouseX, mouseY); + centerText(textName, _mouseX, _mouseY); if (_menuScreen) showMenu(); else if (_menuBar) @@ -417,8 +417,8 @@ void DrasculaEngine::screenSaver() { delete stream; updateEvents(); - xr = mouseX; - yr = mouseY; + xr = _mouseX; + yr = _mouseY; while (!shouldQuit()) { // efecto(bgSurface); @@ -480,18 +480,18 @@ void DrasculaEngine::screenSaver() { // end of efecto() updateEvents(); - if (rightMouseButton == 1 || leftMouseButton == 1) + if (_rightMouseButton == 1 || _leftMouseButton == 1) break; - if (mouseX != xr) + if (_mouseX != xr) break; - if (mouseY != yr) + if (_mouseY != yr) break; } // fin_ghost(); free(copia); free(ghost); - loadPic(roomNumber, bgSurface, HALF_PAL); + loadPic(_roomNumber, bgSurface, HALF_PAL); showCursor(); } |