aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/gfxModule.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2009-03-16 09:45:37 +0000
committerPaul Gilbert2009-03-16 09:45:37 +0000
commit34d3d7c74dcdd36acf6172c02ca3874c75073852 (patch)
treef91c12e150cab7a51553262e36bfdde0c84119d5 /engines/cruise/gfxModule.cpp
parent7d85194eaae2e741ca9b2e55c91eaa2cdf4ff0c3 (diff)
downloadscummvm-rg350-34d3d7c74dcdd36acf6172c02ca3874c75073852.tar.gz
scummvm-rg350-34d3d7c74dcdd36acf6172c02ca3874c75073852.tar.bz2
scummvm-rg350-34d3d7c74dcdd36acf6172c02ca3874c75073852.zip
Code formatting, added further constant references, and corrected method signatures
svn-id: r39445
Diffstat (limited to 'engines/cruise/gfxModule.cpp')
-rw-r--r--engines/cruise/gfxModule.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/engines/cruise/gfxModule.cpp b/engines/cruise/gfxModule.cpp
index 8a21842503..f3700253d3 100644
--- a/engines/cruise/gfxModule.cpp
+++ b/engines/cruise/gfxModule.cpp
@@ -54,15 +54,15 @@ void gfxModuleData_gfxClearFrameBuffer(uint8 *ptr) {
memset(ptr, 0, 64000);
}
-void gfxModuleData_gfxCopyScreen(char *sourcePtr, char *destPtr) {
- memcpy(destPtr, sourcePtr, 64000);
+void gfxModuleData_gfxCopyScreen(const uint8 *sourcePtr, uint8 *destPtr) {
+ memcpy(destPtr, sourcePtr, 320 * 200);
}
void outputBit(char *buffer, int bitPlaneNumber, uint8 data) {
*(buffer + (8000 * bitPlaneNumber)) = data;
}
-void convertGfxFromMode4(uint8 *sourcePtr, int width, int height, uint8 *destPtr) {
+void convertGfxFromMode4(const uint8 *sourcePtr, int width, int height, uint8 *destPtr) {
for (int y = 0; y < height; ++y) {
for (int x = 0; x < width / 16; ++x) {
for (int bit = 0; bit < 16; ++bit) {
@@ -79,7 +79,7 @@ void convertGfxFromMode4(uint8 *sourcePtr, int width, int height, uint8 *destPtr
}
}
-void convertGfxFromMode5(uint8 *sourcePtr, int width, int height, uint8 *destPtr) {
+void convertGfxFromMode5(const uint8 *sourcePtr, int width, int height, uint8 *destPtr) {
int range = (width / 8) * height;
for (int line = 0; line < 200; line++) {
@@ -169,7 +169,7 @@ void gfxModuleData_setPal256(uint8 *ptr) {
gfxModuleData_setDirtyColors(0, 16);
}*/
-void gfxModuleData_convertOldPalColor(uint16 oldColor, uint8* pOutput) {
+void gfxModuleData_convertOldPalColor(uint16 oldColor, uint8 *pOutput) {
int R;
int G;
int B;
@@ -198,7 +198,7 @@ void gfxModuleData_gfxWaitVSync(void) {
void gfxModuleData_flip(void) {
}
-void gfxCopyRect(const byte *sourceBuffer, int width, int height, byte *dest, int x, int y, int colour) {
+void gfxCopyRect(const uint8 *sourceBuffer, int width, int height, byte *dest, int x, int y, int colour) {
int xp, yp;
for (yp = 0; yp < height; ++yp) {
@@ -253,6 +253,4 @@ void resetBitmap(uint8 *dataPtr, int32 dataSize) {
memset(dataPtr, 0, dataSize);
}
-
-
} // End of namespace Cruise