aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorGregory Montoir2006-11-12 18:15:53 +0000
committerGregory Montoir2006-11-12 18:15:53 +0000
commitf89dad5daa4530b5fc36751959ecbf6df4468850 (patch)
treeca28988d147417040016bc423430bb1342d5cfe7 /engines
parentd992c66b29779d2005dc78b6cc65396efa632916 (diff)
downloadscummvm-rg350-f89dad5daa4530b5fc36751959ecbf6df4468850.tar.gz
scummvm-rg350-f89dad5daa4530b5fc36751959ecbf6df4468850.tar.bz2
scummvm-rg350-f89dad5daa4530b5fc36751959ecbf6df4468850.zip
byte -> bool
svn-id: r24695
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/bomp.cpp6
-rw-r--r--engines/scumm/bomp.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/scumm/bomp.cpp b/engines/scumm/bomp.cpp
index bb7333d9bb..1342bc40d8 100644
--- a/engines/scumm/bomp.cpp
+++ b/engines/scumm/bomp.cpp
@@ -33,7 +33,7 @@ static int32 setupBompScale(byte *scaling, int32 size, byte scale);
static void bompScaleFuncX(byte *line_buffer, byte *scaling_x_ptr, byte skip, int32 size);
-static void bompApplyShadow0(const byte *shadowPalette, const byte *line_buffer, byte *dst, int32 size, byte transparency, byte HE7Check);
+static void bompApplyShadow0(const byte *shadowPalette, const byte *line_buffer, byte *dst, int32 size, byte transparency, bool HE7Check);
static void bompApplyShadow1(const byte *shadowPalette, const byte *line_buffer, byte *dst, int32 size, byte transparency);
static void bompApplyShadow3(const byte *shadowPalette, const byte *line_buffer, byte *dst, int32 size, byte transparency);
static void bompApplyActorPalette(byte *actorPalette, byte *line_buffer, int32 size);
@@ -115,7 +115,7 @@ void bompApplyMask(byte *line_buffer, byte *mask, byte maskbit, int32 size, byte
}
}
-void bompApplyShadow(int shadowMode, const byte *shadowPalette, const byte *line_buffer, byte *dst, int32 size, byte transparency, byte HE7Check) {
+void bompApplyShadow(int shadowMode, const byte *shadowPalette, const byte *line_buffer, byte *dst, int32 size, byte transparency, bool HE7Check) {
assert(size > 0);
switch (shadowMode) {
case 0:
@@ -131,7 +131,7 @@ void bompApplyShadow(int shadowMode, const byte *shadowPalette, const byte *line
error("Unknown shadow mode %d", shadowMode);
}
}
-void bompApplyShadow0(const byte *shadowPalette, const byte *line_buffer, byte *dst, int32 size, byte transparency, byte HE7Check = false) {
+void bompApplyShadow0(const byte *shadowPalette, const byte *line_buffer, byte *dst, int32 size, byte transparency, bool HE7Check) {
while (size-- > 0) {
byte tmp = *line_buffer++;
if (tmp != transparency) {
diff --git a/engines/scumm/bomp.h b/engines/scumm/bomp.h
index 74d367172d..b3dfbcabdc 100644
--- a/engines/scumm/bomp.h
+++ b/engines/scumm/bomp.h
@@ -28,7 +28,7 @@
namespace Scumm {
void bompApplyMask(byte *line_buffer, byte *mask, byte maskbit, int32 size, byte transparency);
-void bompApplyShadow(int shadowMode, const byte *shadowPalette, const byte *line_buffer, byte *dst, int32 size, byte transparency, byte HE7Check = false);
+void bompApplyShadow(int shadowMode, const byte *shadowPalette, const byte *line_buffer, byte *dst, int32 size, byte transparency, bool HE7Check = false);
void decompressBomp(byte *dst, const byte *src, int w, int h);
void bompDecodeLine(byte *dst, const byte *src, int size);