diff options
author | D G Turner | 2012-11-30 10:49:25 +0000 |
---|---|---|
committer | D G Turner | 2012-11-30 10:49:25 +0000 |
commit | 06cc3b051ae03c0a7eafa52089ae3d9bfa4ba566 (patch) | |
tree | 4d3ab04bf3a97a246ffa9885052ada4b003d96d7 /engines/dreamweb/dreamweb.cpp | |
parent | 396f45f551bbfacd3dfd46177d27b68a9bc4ffd0 (diff) | |
download | scummvm-rg350-06cc3b051ae03c0a7eafa52089ae3d9bfa4ba566.tar.gz scummvm-rg350-06cc3b051ae03c0a7eafa52089ae3d9bfa4ba566.tar.bz2 scummvm-rg350-06cc3b051ae03c0a7eafa52089ae3d9bfa4ba566.zip |
DREAMWEB: Further migration to screen size constants.
Diffstat (limited to 'engines/dreamweb/dreamweb.cpp')
-rw-r--r-- | engines/dreamweb/dreamweb.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp index d65da8b65c..f7b291b983 100644 --- a/engines/dreamweb/dreamweb.cpp +++ b/engines/dreamweb/dreamweb.cpp @@ -416,7 +416,7 @@ void DreamWebEngine::getPalette(uint8 *data, uint start, uint count) { void DreamWebEngine::setPalette(const uint8 *data, uint start, uint count) { assert(start + count <= 256); - uint8 fixed[768]; + uint8 fixed[3*256]; for (uint i = 0; i < count * 3; ++i) { fixed[i] = data[i] << 2; } @@ -424,10 +424,10 @@ void DreamWebEngine::setPalette(const uint8 *data, uint start, uint count) { } void DreamWebEngine::blit(const uint8 *src, int pitch, int x, int y, int w, int h) { - if (y + h > 200) - h = 200 - y; - if (x + w > 320) - w = 320 - x; + if (y + h > (int)kScreenheight) + h = kScreenheight - y; + if (x + w > (int)kScreenwidth) + w = kScreenwidth - x; if (h <= 0 || w <= 0) return; _system->copyRectToScreen(src, pitch, x, y, w, h); |