SCI: view class fix for hires views that are larger than 64k (fixes kq7 cel corruption)

svn-id: r47661
This commit is contained in:
Martin Kiewitz 2010-01-29 00:03:10 +00:00
parent 39ebb168a1
commit 981252b1fe
2 changed files with 4 additions and 4 deletions

View File

@ -212,8 +212,8 @@ void View::initData(GuiResourceId resourceId) {
cel->displaceY = READ_LE_UINT16(celData + 6);
cel->clearKey = celData[8];
cel->offsetEGA = 0;
cel->offsetRLE = READ_LE_UINT16(celData + 24);
cel->offsetLiteral = READ_LE_UINT16(celData + 28);
cel->offsetRLE = READ_LE_UINT32(celData + 24);
cel->offsetLiteral = READ_LE_UINT32(celData + 28);
cel->rawBitmap = 0;
if (_loop[loopNo].mirrorFlag)
cel->displaceX = -cel->displaceX;

View File

@ -34,8 +34,8 @@ struct CelInfo {
int16 displaceY;
byte clearKey;
uint16 offsetEGA;
uint16 offsetRLE;
uint16 offsetLiteral;
uint32 offsetRLE;
uint32 offsetLiteral;
byte *rawBitmap;
};