diff options
author | Max Horn | 2004-08-14 19:42:00 +0000 |
---|---|---|
committer | Max Horn | 2004-08-14 19:42:00 +0000 |
commit | 152a5e97fe5197a5494fdde8967301888f360d2c (patch) | |
tree | ed39818d7a6b2f3e1fce0f3b379bedb3652f0d63 /scumm/debugger.cpp | |
parent | d5f20cacd7061b4cff302f5b4f50c61a14461425 (diff) | |
download | scummvm-rg350-152a5e97fe5197a5494fdde8967301888f360d2c.tar.gz scummvm-rg350-152a5e97fe5197a5494fdde8967301888f360d2c.tar.bz2 scummvm-rg350-152a5e97fe5197a5494fdde8967301888f360d2c.zip |
Modified VirtScreen to inherit from Graphics::Surface, and added getPixels()/getBackPixels() accessors (these changes make it a bit easier to implement smooth scrolling); also replaced some uses of rtBuffer by proper access through the corresponding VirtScreen
svn-id: r14612
Diffstat (limited to 'scumm/debugger.cpp')
-rw-r--r-- | scumm/debugger.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp index 0a537399ea..5ad7f4811d 100644 --- a/scumm/debugger.cpp +++ b/scumm/debugger.cpp @@ -705,7 +705,7 @@ static void hlineColor(ScummEngine *scumm, int x1, int x2, int y, byte color) { x2 = right - 1; - ptr = vs->screenPtr + x1 + y * vs->width; + ptr = (byte *)vs->pixels + x1 + y * vs->pitch; while (x1++ <= x2) { *ptr++ = color; @@ -784,7 +784,7 @@ void ScummDebugger::drawBox(int box) { VirtScreen *vs = _vm->findVirtScreen(coords.ul.y); if (vs != NULL) - _vm->markRectAsDirty(vs->number, 0, vs->width, 0, vs->height); + _vm->markRectAsDirty(vs->number, 0, vs->w, 0, vs->h); _vm->drawDirtyScreenParts(); _vm->_system->updateScreen(); } |