aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Iskrich2016-06-16 15:52:48 +0300
committerEugene Sandulenko2016-08-03 23:40:36 +0200
commitd90a8605d238786d53e645743d96b8c584ca3fb6 (patch)
tree8b5ec862c0074a9fdcfad0f0f23c82fd79ab9ef6
parent511c0d9f7b39964c683a5a071e6e2f44da105fa7 (diff)
downloadscummvm-rg350-d90a8605d238786d53e645743d96b8c584ca3fb6.tar.gz
scummvm-rg350-d90a8605d238786d53e645743d96b8c584ca3fb6.tar.bz2
scummvm-rg350-d90a8605d238786d53e645743d96b8c584ca3fb6.zip
DIRECTOR: Fix sprite draw rects issues
-rw-r--r--engines/director/score.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 1240e9ec9c..2b619c35e4 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -940,14 +940,6 @@ void Frame::renderSprites(Archive &_movie, Graphics::ManagedSurface &surface, Co
int y = _sprites[i]->_startPoint.y - regY + rectTop;
int height = _sprites[i]->_height;
int width = _sprites[i]->_width;
- if (x < 0) {
- width += x;
- x = 0;
- }
- if (y < 0) {
- height += y;
- y = 0;
- }
Common::Rect drawRect = Common::Rect(x, y, x + width, y + height);
_drawRects.push_back(drawRect);
@@ -971,7 +963,7 @@ void Frame::renderSprites(Archive &_movie, Graphics::ManagedSurface &surface, Co
}
void Frame::drawBackgndTransSprite(Graphics::ManagedSurface &target, const Graphics::Surface &sprite, Common::Rect &drawRect) {
- uint8 skipColor = *(byte *)target.getBasePtr(0, 0); //FIXME is it always white (last entry in pallette) ?
+ uint8 skipColor = 15; //FIXME is it always white (last entry in pallette) ?
for (int ii = 0; ii < sprite.h; ii++) {
const byte *src = (const byte *)sprite.getBasePtr(0, ii);
byte *dst = (byte *)target.getBasePtr(drawRect.left, drawRect.top + ii);