aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/pal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cine/pal.cpp')
-rw-r--r--engines/cine/pal.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/cine/pal.cpp b/engines/cine/pal.cpp
index f6754f9195..9341563898 100644
--- a/engines/cine/pal.cpp
+++ b/engines/cine/pal.cpp
@@ -30,15 +30,12 @@ namespace Cine {
uint16 tempPalette[256];
-byte colorMode256 = 0;
-byte palette256[256 * 3];
-
uint16 palEntriesCount;
PalEntry *palPtr = NULL;
-byte paletteBuffer1[16];
-byte paletteBuffer2[16];
+static byte paletteBuffer1[16];
+static byte paletteBuffer2[16];
void loadPal(const char *fileName) {
char buffer[20];
@@ -60,7 +57,7 @@ void loadPal(const char *fileName) {
palEntriesCount = palFileHandle.readUint16LE();
palFileHandle.readUint16LE(); // entry size
-
+
palPtr = (PalEntry *)malloc(palEntriesCount * sizeof(PalEntry));
assert(palPtr);
for (int i = 0; i < palEntriesCount; ++i) {