aboutsummaryrefslogtreecommitdiff
path: root/saga
diff options
context:
space:
mode:
authorEugene Sandulenko2004-07-31 20:50:34 +0000
committerEugene Sandulenko2004-07-31 20:50:34 +0000
commit2060a9475d30f2275b3ee7a464f4246e0b9826f0 (patch)
tree3e1eb00644b3e60c3e79680a33a504a8389b0f8f /saga
parent62bcb7975f0312488342344baa343421f616f255 (diff)
downloadscummvm-rg350-2060a9475d30f2275b3ee7a464f4246e0b9826f0.tar.gz
scummvm-rg350-2060a9475d30f2275b3ee7a464f4246e0b9826f0.tar.bz2
scummvm-rg350-2060a9475d30f2275b3ee7a464f4246e0b9826f0.zip
Rename some more functions to fit our naming rules
svn-id: r14394
Diffstat (limited to 'saga')
-rw-r--r--saga/image.cpp12
-rw-r--r--saga/saga.h6
2 files changed, 9 insertions, 9 deletions
diff --git a/saga/image.cpp b/saga/image.cpp
index edff30be08..bb51df5b74 100644
--- a/saga/image.cpp
+++ b/saga/image.cpp
@@ -83,18 +83,18 @@ int SagaEngine::decodeBGImage(const byte *image_data, size_t image_size,
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 @@ int SagaEngine::decodeBGImage(const byte *image_data, size_t image_size,
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 @@ int SagaEngine::DecodeBGImageRLE(const byte *inbuf, size_t inbuf_len, byte *outb
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 @@ int SagaEngine::FlipImage(byte *img_buf, int columns, int scanlines) {
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;
diff --git a/saga/saga.h b/saga/saga.h
index 43794e19cd..1bd1d827d3 100644
--- a/saga/saga.h
+++ b/saga/saga.h
@@ -71,9 +71,9 @@ public:
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,