aboutsummaryrefslogtreecommitdiff
path: root/sword2/driver
diff options
context:
space:
mode:
authorMax Horn2003-09-07 03:18:27 +0000
committerMax Horn2003-09-07 03:18:27 +0000
commit78476c6bd68834fa0a283c1c4b5ecbb140a94472 (patch)
tree413381b338e73137bc371d083c0e36a029b63df7 /sword2/driver
parent418649fca2064617afd642134d07e0eadf732132 (diff)
downloadscummvm-rg350-78476c6bd68834fa0a283c1c4b5ecbb140a94472.tar.gz
scummvm-rg350-78476c6bd68834fa0a283c1c4b5ecbb140a94472.tar.bz2
scummvm-rg350-78476c6bd68834fa0a283c1c4b5ecbb140a94472.zip
more endian fixes
svn-id: r10058
Diffstat (limited to 'sword2/driver')
-rw-r--r--sword2/driver/render.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sword2/driver/render.cpp b/sword2/driver/render.cpp
index 7997d8e3dd..e2bade672e 100644
--- a/sword2/driver/render.cpp
+++ b/sword2/driver/render.cpp
@@ -1143,9 +1143,9 @@ int32 InitialiseBackgroundLayer(_parallax *p) {
if (p->offset[i] == 0)
continue;
- line = (_parallaxLine *) ((uint8 *) p + p->offset[i]);
+ line = (_parallaxLine *) ((uint8 *) p + FROM_LE_32(p->offset[i]));
data = (uint8 *) line + sizeof(_parallaxLine);
- x = line->offset;
+ x = FROM_LE_16(line->offset);
dst = memchunk + i * p->w + x;
@@ -1155,7 +1155,7 @@ int32 InitialiseBackgroundLayer(_parallax *p) {
continue;
}
- for (j = 0; j < line->packets; j++) {
+ for (j = 0; j < FROM_LE_16(line->packets); j++) {
if (zeros) {
dst += *data;
x += *data;