aboutsummaryrefslogtreecommitdiff
path: root/saga/sprite.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-10-22 07:21:17 +0000
committerTorbjörn Andersson2004-10-22 07:21:17 +0000
commitf9f5845e2d0cd245ff75f95f36eaf7f30b639ea3 (patch)
tree8f179a42fa86b23014413546da6ff7a58cce3284 /saga/sprite.cpp
parent4115b54b004db5f8879d92f01bea17a52008af5d (diff)
downloadscummvm-rg350-f9f5845e2d0cd245ff75f95f36eaf7f30b639ea3.tar.gz
scummvm-rg350-f9f5845e2d0cd245ff75f95f36eaf7f30b639ea3.tar.bz2
scummvm-rg350-f9f5845e2d0cd245ff75f95f36eaf7f30b639ea3.zip
Made the usage of the Rect data type more consistent with the rest of
ScummVM. Note that these are only the cases I was able to find in one morning. There may be others left to fix. But I'm sure at least most of them will be found when we start cleaning up the codebase a bit. svn-id: r15641
Diffstat (limited to 'saga/sprite.cpp')
-rw-r--r--saga/sprite.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/saga/sprite.cpp b/saga/sprite.cpp
index 497f7c2205..e9a136c214 100644
--- a/saga/sprite.cpp
+++ b/saga/sprite.cpp
@@ -331,13 +331,13 @@ int Sprite::drawOccluded(R_SURFACE *ds, R_SPRITELIST *sprite_list, int sprite_nu
spr_src_rect.left = 0;
spr_src_rect.top = 0;
- spr_src_rect.right = s_width - 1;
- spr_src_rect.bottom = s_height - 1;
+ spr_src_rect.right = s_width;
+ spr_src_rect.bottom = s_height;
spr_dst_rect.left = 0;
spr_dst_rect.top = 0;
spr_dst_rect.right = ds->clip_rect.right;
- spr_dst_rect.bottom = MIN(ds->clip_rect.bottom, (int16)(mask_h - 1));
+ spr_dst_rect.bottom = MIN(ds->clip_rect.bottom, (int16)mask_h);
spr_pt.x = spr_x + x_align;
spr_pt.y = spr_y + y_align;