aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Apers2004-10-11 13:27:13 +0000
committerChris Apers2004-10-11 13:27:13 +0000
commit40a13df5b2107cf9f61ce4fcc6a81bdd9145538a (patch)
tree0c76edf05ecc50978a83f59eff149cd9c0f318ce
parent29c0c5965265000ababb17abf5a59d9d3d10afc0 (diff)
downloadscummvm-rg350-40a13df5b2107cf9f61ce4fcc6a81bdd9145538a.tar.gz
scummvm-rg350-40a13df5b2107cf9f61ce4fcc6a81bdd9145538a.tar.bz2
scummvm-rg350-40a13df5b2107cf9f61ce4fcc6a81bdd9145538a.zip
New params
svn-id: r15517
-rw-r--r--backends/PalmOS/Src/arm/native.h5
-rw-r--r--backends/PalmOS/Src/arm/proc3.cpp11
2 files changed, 9 insertions, 7 deletions
diff --git a/backends/PalmOS/Src/arm/native.h b/backends/PalmOS/Src/arm/native.h
index 85e51a5730..5bd89d103c 100644
--- a/backends/PalmOS/Src/arm/native.h
+++ b/backends/PalmOS/Src/arm/native.h
@@ -108,8 +108,9 @@ typedef struct {
byte _scaleY;
int32 _numStrips;
- int _outwidth;
- int _outheight;
+ int _out_pitch;
+ int _out_w;
+ int _out_h;
byte *_shadow_table;
byte *_palette;
diff --git a/backends/PalmOS/Src/arm/proc3.cpp b/backends/PalmOS/Src/arm/proc3.cpp
index 0e0aec4d2b..650d05ab37 100644
--- a/backends/PalmOS/Src/arm/proc3.cpp
+++ b/backends/PalmOS/Src/arm/proc3.cpp
@@ -22,8 +22,9 @@ UInt32 CostumeRenderer_proc3(void *userData68KP) {
SET8 (byte ,_scaleX )
SET8 (byte ,_scaleY )
SET32 (int32 ,_numStrips )
- SET32 (int ,_outwidth )
- SET32 (int ,_outheight )
+ SET32 (int ,_out_pitch )
+ SET32 (int ,_out_w )
+ SET32 (int ,_out_h )
SETPTR (byte * ,_shadow_table )
SETPTR (byte * ,_palette )
SET8 (byte ,_shadow_mode )
@@ -74,7 +75,7 @@ UInt32 CostumeRenderer_proc3(void *userData68KP) {
do {
if (_scaleY == 255 || *scaleytab++ < _scaleY) {
- masked = (y < 0 || y >= _outheight) || (v1.mask_ptr && (mask[0] & maskbit));
+ masked = (y < 0 || y >= _out_h) || (v1.mask_ptr && (mask[0] & maskbit));
if (color && !masked) {
// FIXME: Fully implement _shadow_mode.in Sam & Max
@@ -88,7 +89,7 @@ UInt32 CostumeRenderer_proc3(void *userData68KP) {
}
*dst = pcolor;
}
- dst += _outwidth;
+ dst += _out_w;
mask += _numStrips;
y++;
}
@@ -104,7 +105,7 @@ UInt32 CostumeRenderer_proc3(void *userData68KP) {
if (_scaleX == 255 || v1.scaletable[_scaleIndexX] < _scaleX) {
v1.x += v1.scaleXstep;
- if (v1.x < 0 || v1.x >= _outwidth)
+ if (v1.x < 0 || v1.x >= _out_w)
return _scaleIndexX;
//goto end_jump;
maskbit = revBitMask[v1.x & 7];