aboutsummaryrefslogtreecommitdiff
path: root/engines/draci
diff options
context:
space:
mode:
Diffstat (limited to 'engines/draci')
-rw-r--r--engines/draci/sprite.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/draci/sprite.cpp b/engines/draci/sprite.cpp
index 97118dd506..1b9d0acefb 100644
--- a/engines/draci/sprite.cpp
+++ b/engines/draci/sprite.cpp
@@ -126,7 +126,6 @@ void Sprite::setMirrorOff() {
_mirror = false;
}
-// TODO: Research what kind of sampling the original player uses
void Sprite::drawScaled(Surface *surface, bool markDirty) const {
Common::Rect sourceRect(0, 0, _width, _height);
@@ -155,8 +154,8 @@ void Sprite::drawScaled(Surface *surface, bool markDirty) const {
const int transparent = surface->getTransparentColour();
// Calculate how many rows and columns we need to draw
- const int rows = clippedDestRect.bottom - clippedDestRect.top;
- const int columns = clippedDestRect.right - clippedDestRect.left;
+ const int rows = clippedDestRect.height();
+ const int columns = clippedDestRect.width();
int *rowIndices = new int[rows];
int *columnIndices = new int[columns];