aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicola Mettifogo2007-02-18 09:26:20 +0000
committerNicola Mettifogo2007-02-18 09:26:20 +0000
commit03099ec1cad0b2780b7ca7368d331ab3a5ab4252 (patch)
tree8697039ea8ecde54408988b8ba5df2367758ba34
parent1a6361038e5e6b5f7bfdb102578fa38c3d2b3c9b (diff)
downloadscummvm-rg350-03099ec1cad0b2780b7ca7368d331ab3a5ab4252.tar.gz
scummvm-rg350-03099ec1cad0b2780b7ca7368d331ab3a5ab4252.tar.bz2
scummvm-rg350-03099ec1cad0b2780b7ca7368d331ab3a5ab4252.zip
more big-endianness fixes
svn-id: r25672
-rw-r--r--engines/parallaction/graphics.cpp21
1 files changed, 14 insertions, 7 deletions
diff --git a/engines/parallaction/graphics.cpp b/engines/parallaction/graphics.cpp
index dbcb9acb4f..3f8adab324 100644
--- a/engines/parallaction/graphics.cpp
+++ b/engines/parallaction/graphics.cpp
@@ -467,7 +467,7 @@ void Graphics::blit(uint16 w, uint16 h, int16 x, int16 y, uint16 z, byte *data,
void jobDisplayLabel(void *parm, Job *j) {
ZoneLabel *label = (ZoneLabel*)parm;
- debugC(1, kDebugLocation, "jobDisplayLabel (%p)", (const void*) label);
+ debugC(1, kDebugJobs, "jobDisplayLabel (%p)", (const void*) label);
if (label->_cnv._width == 0)
return;
@@ -479,7 +479,7 @@ void jobDisplayLabel(void *parm, Job *j) {
void jobEraseLabel(void *parm, Job *j) {
ZoneLabel *label = (ZoneLabel*)parm;
- debugC(1, kDebugLocation, "jobEraseLabel (%p)", (const void*) label);
+ debugC(1, kDebugJobs, "jobEraseLabel (%p)", (const void*) label);
int16 _si, _di;
@@ -1031,8 +1031,10 @@ void Graphics::loadStaticCnv(const char *filename, StaticCnv *cnv) {
byte unk;
readArchivedFile(file, &unk, 1);
- readArchivedFile(file, &cnv->_width, 1);
- readArchivedFile(file, &cnv->_height, 1);
+ readArchivedFile(file, &unk, 1);
+ cnv->_width = unk;
+ readArchivedFile(file, &unk, 1);
+ cnv->_height = unk;
uint16 compressedsize = getArchivedFileLength(path) - 3;
byte *compressed = (byte*)memAlloc(compressedsize);
@@ -1067,9 +1069,14 @@ void Graphics::loadCnv(const char *filename, Cnv *cnv) {
cnv->_count = cnv->_width = cnv->_height = 0;
- readArchivedFile(file, &cnv->_count, 1);
- readArchivedFile(file, &cnv->_width, 1);
- readArchivedFile(file, &cnv->_height, 1);
+ byte unk;
+
+ readArchivedFile(file, &unk, 1);
+ cnv->_count = unk;
+ readArchivedFile(file, &unk, 1);
+ cnv->_width = unk;
+ readArchivedFile(file, &unk, 1);
+ cnv->_height = unk;
uint16 framesize = cnv->_width*cnv->_height;