[Scummvm-cvs-logs] CVS: scummvm/saga image.cpp,1.10,1.11 saga.h,1.15,1.16

Eugene Sandulenko sev at users.sourceforge.net
Sat Jul 31 13:51:06 CEST 2004


Update of /cvsroot/scummvm/scummvm/saga
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21140

Modified Files:
	image.cpp saga.h 
Log Message:
Rename some more functions to fit our naming rules


Index: image.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/image.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- image.cpp	31 Jul 2004 13:49:26 -0000	1.10
+++ image.cpp	31 Jul 2004 20:50:34 -0000	1.11
@@ -83,18 +83,18 @@
 	out_buf_len = hdr.width * hdr.height;
 	out_buf = (byte *)malloc(out_buf_len);
 
-	if (DecodeBGImageRLE(RLE_data_ptr,
+	if (decodeBGImageRLE(RLE_data_ptr,
 		RLE_data_len, decode_buf, decode_buf_len) != R_SUCCESS) {
 		free(decode_buf);
 		free(out_buf);
 		return R_FAILURE;
 	}
 
-	UnbankBGImage(out_buf, decode_buf, hdr.width, hdr.height);
+	unbankBGImage(out_buf, decode_buf, hdr.width, hdr.height);
 
 	// For some reason bg images in IHNM are upside down
 	if (GAME_GetGameType() == R_GAMETYPE_IHNM) {
-		FlipImage(out_buf, hdr.width, hdr.height);
+		flipImage(out_buf, hdr.width, hdr.height);
 	}
 
 	free(decode_buf);
@@ -108,7 +108,7 @@
 	return R_SUCCESS;
 }
 
-int SagaEngine::DecodeBGImageRLE(const byte *inbuf, size_t inbuf_len, byte *outbuf, size_t outbuf_len) {
+int SagaEngine::decodeBGImageRLE(const byte *inbuf, size_t inbuf_len, byte *outbuf, size_t outbuf_len) {
 	const byte *inbuf_ptr;
 	byte *outbuf_ptr;
 	uint32 inbuf_remain;
@@ -302,7 +302,7 @@
 	return R_SUCCESS;
 }
 
-int SagaEngine::FlipImage(byte *img_buf, int columns, int scanlines) {
+int SagaEngine::flipImage(byte *img_buf, int columns, int scanlines) {
 	int line;
 	byte *tmp_scan;
 
@@ -332,7 +332,7 @@
 	return R_SUCCESS;
 }
 
-int SagaEngine::UnbankBGImage(byte *dst_buf, const byte *src_buf, int columns, int scanlines) {
+int SagaEngine::unbankBGImage(byte *dst_buf, const byte *src_buf, int columns, int scanlines) {
 	int x, y;
 	int temp;
 	int quadruple_rows;

Index: saga.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/saga.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- saga.h	31 Jul 2004 13:49:26 -0000	1.15
+++ saga.h	31 Jul 2004 20:50:34 -0000	1.16
@@ -71,9 +71,9 @@
 	Anim *_anim;
 
 private:
-	int DecodeBGImageRLE(const byte *inbuf, size_t inbuf_len, byte *outbuf, size_t outbuf_len);
-	int FlipImage(byte *img_buf, int columns, int scanlines);
-	int UnbankBGImage(byte *dest_buf, const byte *src_buf, int columns, int scanlines);
+	int decodeBGImageRLE(const byte *inbuf, size_t inbuf_len, byte *outbuf, size_t outbuf_len);
+	int flipImage(byte *img_buf, int columns, int scanlines);
+	int unbankBGImage(byte *dest_buf, const byte *src_buf, int columns, int scanlines);
 
 public:
 	int decodeBGImage(const byte *image_data, size_t image_size,





More information about the Scummvm-git-logs mailing list