diff options
author | Andrew Kurushin | 2005-07-09 10:34:09 +0000 |
---|---|---|
committer | Andrew Kurushin | 2005-07-09 10:34:09 +0000 |
commit | 866d3e3db357293aea3e70a55b3944bf3dccd5ac (patch) | |
tree | 5ca833c9014bd8065dcd4604f7bc2f32d1b92745 /saga/scene.cpp | |
parent | aa13ccd6c3f5255ecb5e04dc92018876a9cabe96 (diff) | |
download | scummvm-rg350-866d3e3db357293aea3e70a55b3944bf3dccd5ac.tar.gz scummvm-rg350-866d3e3db357293aea3e70a55b3944bf3dccd5ac.tar.bz2 scummvm-rg350-866d3e3db357293aea3e70a55b3944bf3dccd5ac.zip |
remove 1pixel dos clipping
svn-id: r18521
Diffstat (limited to 'saga/scene.cpp')
-rw-r--r-- | saga/scene.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/saga/scene.cpp b/saga/scene.cpp index 163c7a7448..d2073801aa 100644 --- a/saga/scene.cpp +++ b/saga/scene.cpp @@ -277,7 +277,7 @@ void Scene::getBGInfo(BGInfo &bgInfo) { } if (_bg.h < _vm->getSceneHeight()) { - bgInfo.bounds.top = (_vm->getClippedSceneHeight() - _bg.h) / 2; + bgInfo.bounds.top = (_vm->getSceneHeight() - _bg.h) / 2; } bgInfo.bounds.setWidth(_bg.w); @@ -449,14 +449,11 @@ void Scene::loadScene(LoadSceneParams *loadSceneParams) { _sceneClip.left = 0; _sceneClip.top = 0; _sceneClip.right = _vm->getDisplayWidth(); - _sceneClip.bottom = _vm->getClippedSceneHeight(); + _sceneClip.bottom = _vm->getSceneHeight(); } else { BGInfo backGroundInfo; getBGInfo(backGroundInfo); _sceneClip = backGroundInfo.bounds; - if (_sceneClip.bottom == _vm->getSceneHeight()) { - _sceneClip.bottom = _vm->getClippedSceneHeight(); - } if (!(_bg.w < _vm->getDisplayWidth() || _bg.h < _vm->getSceneHeight())) _outsetSceneNumber = _sceneNumber; } @@ -766,7 +763,7 @@ int Scene::processSceneResources() { // At least in ITE the mask needs to be clipped. _bgMask.w = MIN(_bgMask.w, _vm->getDisplayWidth()); - _bgMask.h = MIN(_bgMask.h, _vm->getClippedSceneHeight()); + _bgMask.h = MIN(_bgMask.h, _vm->getSceneHeight()); debug(4, "BACKGROUND MASK width=%d height=%d length=%d", _bgMask.w, _bgMask.h, _bgMask.buf_len); break; @@ -894,7 +891,7 @@ void Scene::draw() { } else { bufToSurface(backBuffer, buf_info.bg_buf, buf_info.bg_buf_w, - _sceneClip.bottom < buf_info.bg_buf_h ? _vm->getClippedSceneHeight() : buf_info.bg_buf_h, NULL, &bgPoint); + _sceneClip.bottom < buf_info.bg_buf_h ? _vm->getSceneHeight() : buf_info.bg_buf_h, NULL, &bgPoint); } } |