diff options
author | Max Horn | 2004-08-14 20:02:40 +0000 |
---|---|---|
committer | Max Horn | 2004-08-14 20:02:40 +0000 |
commit | 048c19ef70ad7f93e3762b4ed8e4d11ca16f8236 (patch) | |
tree | fe32ee9efd47f18e5be0e2fa9ee34e12810c26d4 /scumm | |
parent | 2deccf994969a896dfce6b07db478bcc3ec13d75 (diff) | |
download | scummvm-rg350-048c19ef70ad7f93e3762b4ed8e4d11ca16f8236.tar.gz scummvm-rg350-048c19ef70ad7f93e3762b4ed8e4d11ca16f8236.tar.bz2 scummvm-rg350-048c19ef70ad7f93e3762b4ed8e4d11ca16f8236.zip |
Remove obsolete comment
svn-id: r14614
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/gfx.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index 82bbd57c11..6246806a17 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -642,10 +642,6 @@ void ScummEngine::restoreBG(Common::Rect rect, byte backColor) { if (vs->hasTwoBuffers && _currentRoom != 0 && isLightOn()) { blit(screenBuf, vs->pitch, vs->getBackPixels(rect.left, rect.top), vs->pitch, width, height); if (vs->number == kMainVirtScreen && _charset->_hasMask) { - // Note: At first sight it may look as if this could - // be optimized to (rect.right - rect.left) / 8 and - // thus to width / 8, but that's not the case since - // we are dealing with integer math here. const int mask_width = rect.width(); byte *mask = (byte *)gdi._textSurface.pixels + gdi._textSurface.pitch * rect.top + rect.left; while (height--) { @@ -683,13 +679,12 @@ void CharsetRenderer::restoreCharsetBg() { byte *screenBuf = vs->getPixels(0, 0); if (vs->hasTwoBuffers && _vm->_currentRoom != 0 && _vm->isLightOn()) { - const byte *backBuf = vs->getBackPixels(0, 0); - if (vs->number == kMainVirtScreen) { // Clean out the charset mask memset(_vm->gdi._textSurface.pixels, CHARSET_MASK_TRANSPARENCY, _vm->gdi._textSurface.pitch * _vm->gdi._textSurface.h); } else { // Restore from back buffer + const byte *backBuf = vs->getBackPixels(0, 0); blit(screenBuf, vs->pitch, backBuf, vs->pitch, vs->w, vs->h); } } else { |