aboutsummaryrefslogtreecommitdiff
path: root/scumm/verbs.cpp
diff options
context:
space:
mode:
authorMax Horn2003-05-10 12:59:32 +0000
committerMax Horn2003-05-10 12:59:32 +0000
commit114af3159e7c4fc552972a460f845e982fbc6ef5 (patch)
treec941da35b4115d80046ace0f8d05f1026cdd78ba /scumm/verbs.cpp
parent97197f95ea5159e3b8caa5cc7f92fdbf0523a9ed (diff)
downloadscummvm-rg350-114af3159e7c4fc552972a460f845e982fbc6ef5.tar.gz
scummvm-rg350-114af3159e7c4fc552972a460f845e982fbc6ef5.tar.bz2
scummvm-rg350-114af3159e7c4fc552972a460f845e982fbc6ef5.zip
added a 'width' parameter to drawBitmap (contrary to 'numstrips', it specifies the full width of the image passed in, not how much we shoul draw of it) - this will be used for the new V2 drawBitmap code; renamed drawBitmap parameter 'h' to 'height'
svn-id: r7412
Diffstat (limited to 'scumm/verbs.cpp')
-rw-r--r--scumm/verbs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/verbs.cpp b/scumm/verbs.cpp
index 53b217903f..285a4f6eae 100644
--- a/scumm/verbs.cpp
+++ b/scumm/verbs.cpp
@@ -270,12 +270,12 @@ void Scumm::drawVerbBitmap(int verb, int x, int y) {
for (i = 0; i < imgw; i++) {
tmp = xstrip + i;
if (tmp < gdi._numStrips)
- gdi.drawBitmap(imptr, vs, tmp, ydiff, imgh << 3, i, 1, Gdi::dbAllowMaskOr);
+ gdi.drawBitmap(imptr, vs, tmp, ydiff, imgw << 3, imgh << 3, i, 1, Gdi::dbAllowMaskOr);
}
vst = &_verbs[verb];
- vst->right = vst->x + imgw * 8;
- vst->bottom = vst->y + imgh * 8;
+ vst->right = vst->x + imgw << 3;
+ vst->bottom = vst->y + imgh << 3;
vst->oldleft = vst->x;
vst->oldright = vst->right;
vst->oldtop = vst->y;