diff options
author | Ludvig Strigeus | 2001-12-27 17:51:58 +0000 |
---|---|---|
committer | Ludvig Strigeus | 2001-12-27 17:51:58 +0000 |
commit | 5a7b86cbf6d31b94e95843f7324052dea561e10d (patch) | |
tree | 025539c4ed59c91eb0a7f711c7916f8e26402c53 /verbs.cpp | |
parent | 1caad519e208320033b4560074d6d25467cd7648 (diff) | |
download | scummvm-rg350-5a7b86cbf6d31b94e95843f7324052dea561e10d.tar.gz scummvm-rg350-5a7b86cbf6d31b94e95843f7324052dea561e10d.tar.bz2 scummvm-rg350-5a7b86cbf6d31b94e95843f7324052dea561e10d.zip |
better full throttle support,
a couple of MI2 fixes.
svn-id: r3532
Diffstat (limited to 'verbs.cpp')
-rw-r--r-- | verbs.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -167,8 +167,8 @@ void Scumm::drawVerbBitmap(int vrb, int x, int y) { int ydiff, xstrip; int imgw, imgh; int i,tmp; - byte *IMHD_ptr; byte *obim; + ImageHeader *imhd; if ((vs=findVirtScreen(y)) == NULL) return; @@ -183,12 +183,11 @@ void Scumm::drawVerbBitmap(int vrb, int x, int y) { xstrip = x>>3; ydiff = y - vs->topline; - obim = getResourceAddress(rtVerb, vrb); - IMHD_ptr = findResource(MKID('IMHD'), obim); - imgw = READ_LE_UINT16(IMHD_ptr+0x14) >> 3; - imgh = READ_LE_UINT16(IMHD_ptr+0x16) >> 3; + imhd = (ImageHeader*)findResourceData(MKID('IMHD'), obim); + imgw = READ_LE_UINT16(&imhd->width) >> 3; + imgh = READ_LE_UINT16(&imhd->height) >> 3; imptr = findResource(MKID('IM01'), obim); if (!imptr) |