[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.18,2.19
Max Horn
fingolfin at users.sourceforge.net
Wed Jan 1 09:05:13 CET 2003
- Previous message: [Scummvm-cvs-logs] CVS: scummvm README,1.57,1.58
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm intern.h,2.27,2.28 script.cpp,1.36,1.37 script_v6.cpp,1.32,1.33 script_v8.cpp,2.89,2.90 vars.cpp,1.28,1.29
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv8778
Modified Files:
gfx.cpp
Log Message:
added an assert against the z plane count; resolved an ambigious statement (the order in which the post-increment operator is executed is not specified in the C(++) standard); indentation cleanup
Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.18
retrieving revision 2.19
diff -u -d -r2.18 -r2.19
--- gfx.cpp 1 Jan 2003 09:02:36 -0000 2.18
+++ gfx.cpp 1 Jan 2003 17:04:13 -0000 2.19
@@ -805,6 +805,7 @@
assert(smap_ptr);
numzbuf = _disable_zbuffer ? 0 : _numZBuffer;
+ assert(numzbuf <= (int)ARRAYSIZE(zplane_list));
if (_vm->_features & GF_SMALL_HEADER) {
/* this is really ugly, FIXME */
@@ -3128,7 +3129,7 @@
#pragma mark --- Bomp ---
#pragma mark -
-int32 Scumm::bompDecodeLineMode0(byte * src, byte * line_buffer, int32 size) {
+int32 Scumm::bompDecodeLineMode0(byte *src, byte *line_buffer, int32 size) {
if (size <= 0)
return size;
@@ -3138,7 +3139,7 @@
return size;
}
-int32 Scumm::bompDecodeLineMode1(byte * src, byte * line_buffer, int32 size) {
+int32 Scumm::bompDecodeLineMode1(byte *src, byte *line_buffer, int32 size) {
int32 t_size = READ_LE_UINT16(src) + 2;
if (size <= 0)
return t_size;
@@ -3165,7 +3166,7 @@
return t_size;
}
-int32 Scumm::bompDecodeLineMode3(byte * src, byte * line_buffer, int32 size) {
+int32 Scumm::bompDecodeLineMode3(byte *src, byte *line_buffer, int32 size) {
int32 t_size = READ_LE_UINT16(src) + 2;
line_buffer += size;
if (size <= 0)
@@ -3193,7 +3194,7 @@
return t_size;
}
-void Scumm::bompApplyMask(byte * line_buffer, byte * mask_src, byte bits, int32 size) {
+void Scumm::bompApplyMask(byte *line_buffer, byte *mask_src, byte bits, int32 size) {
while(1) {
byte tmp = *(mask_src++);
do {
@@ -3209,7 +3210,7 @@
}
}
-void Scumm::bompApplyShadow0(byte * line_buffer, byte * dst, int32 size) {
+void Scumm::bompApplyShadow0(byte *line_buffer, byte *dst, int32 size) {
while(1) {
if (size-- == 0)
return;
@@ -3221,7 +3222,7 @@
}
}
-void Scumm::bompApplyShadow1(byte * line_buffer, byte * dst, int32 size) {
+void Scumm::bompApplyShadow1(byte *line_buffer, byte *dst, int32 size) {
while(1) {
if (size-- == 0)
return;
@@ -3236,7 +3237,7 @@
}
}
-void Scumm::bompApplyShadow3(byte * line_buffer, byte * dst, int32 size) {
+void Scumm::bompApplyShadow3(byte *line_buffer, byte *dst, int32 size) {
while(1) {
if (size-- == 0)
return;
@@ -3251,18 +3252,19 @@
}
}
-void Scumm::bompApplyActorPalette(byte * line_buffer, int32 size) {
+void Scumm::bompApplyActorPalette(byte *line_buffer, int32 size) {
if (_bompActorPalletePtr != 0) {
*(_bompActorPalletePtr + 255) = 255;
while(1) {
if (size-- == 0)
break;
- *(line_buffer++) = *(_bompActorPalletePtr + *(line_buffer));
+ *line_buffer = *(_bompActorPalletePtr + *line_buffer);
+ line_buffer++;
}
}
}
-void Scumm::bompScaleFuncX(byte * line_buffer, byte * scalling_x_ptr, byte skip, int32 size) {
+void Scumm::bompScaleFuncX(byte *line_buffer, byte *scalling_x_ptr, byte skip, int32 size) {
byte * line_ptr1 = line_buffer;
byte * line_ptr2 = line_buffer;
- Previous message: [Scummvm-cvs-logs] CVS: scummvm README,1.57,1.58
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm intern.h,2.27,2.28 script.cpp,1.36,1.37 script_v6.cpp,1.32,1.33 script_v8.cpp,2.89,2.90 vars.cpp,1.28,1.29
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list