aboutsummaryrefslogtreecommitdiff
path: root/sword2/function.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-06-09 06:33:29 +0000
committerTorbjörn Andersson2004-06-09 06:33:29 +0000
commit0426d38aa599d554bd63c4053c6990356a62b71e (patch)
treeb6a0362ef754b67e1c55df5da7e7acb7f5857469 /sword2/function.cpp
parent51b373eb6fdcbc6af2bc606341c92cd645c56096 (diff)
downloadscummvm-rg350-0426d38aa599d554bd63c4053c6990356a62b71e.tar.gz
scummvm-rg350-0426d38aa599d554bd63c4053c6990356a62b71e.tar.bz2
scummvm-rg350-0426d38aa599d554bd63c4053c6990356a62b71e.zip
Cleaned up the palette handling a bit. Renamed _palCopy to _palette since I
found the old name misleading (there is only one array that stores the palette in the engine, though it could be argued that it's a copy of the one used by the backend), and removed some code that I'm almost certain was never used. (I've added assert()s to trigger in the cases where it would have been used.) svn-id: r13949
Diffstat (limited to 'sword2/function.cpp')
-rw-r--r--sword2/function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sword2/function.cpp b/sword2/function.cpp
index 4fd756d529..9feca89f3e 100644
--- a/sword2/function.cpp
+++ b/sword2/function.cpp
@@ -433,7 +433,7 @@ int32 Logic::fnPlayCredits(int32 *params) {
uint16 logoWidth = 0;
uint16 logoHeight = 0;
byte *logoData = NULL;
- byte palette[1024];
+ byte palette[256 * 4];
if (f.open("credits.bmp")) {
logoWidth = f.readUint16LE();