aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMax Horn2007-09-03 12:23:19 +0000
committerMax Horn2007-09-03 12:23:19 +0000
commit3c2994f72bbf8976390e63d7169981b89be253a9 (patch)
treee50d7ca79cdd0363604d7691ea0694b6fdf1689c /engines
parent5e1a10c0707ee464339a28b3cd6e167236b7a50a (diff)
downloadscummvm-rg350-3c2994f72bbf8976390e63d7169981b89be253a9.tar.gz
scummvm-rg350-3c2994f72bbf8976390e63d7169981b89be253a9.tar.bz2
scummvm-rg350-3c2994f72bbf8976390e63d7169981b89be253a9.zip
Make static data tables const (helps the optimizer a bit)
svn-id: r28846
Diffstat (limited to 'engines')
-rw-r--r--engines/agi/picture.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/agi/picture.cpp b/engines/agi/picture.cpp
index 82a4d6f95a..2bd13b10c6 100644
--- a/engines/agi/picture.cpp
+++ b/engines/agi/picture.cpp
@@ -44,7 +44,7 @@ static uint8 scrOn;
static uint8 scrColour;
static uint8 priColour;
-static uint8 circles[][15] = { /* agi circle bitmaps */
+static const uint8 circles[][15] = { /* agi circle bitmaps */
{0x80},
/* {0xfc}, */
{ 3 << 4 }, /* pattern data different from specs. fixes gold rush. does not seem to break any other v3 games */
@@ -56,14 +56,14 @@ static uint8 circles[][15] = { /* agi circle bitmaps */
{0x18, 0x3c, 0x7e, 0x7e, 0x7e, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7e, 0x7e, 0x7e, 0x3c, 0x18}
};
-static uint8 splatterMap[32] = { /* splatter brush bitmaps */
+static const uint8 splatterMap[32] = { /* splatter brush bitmaps */
0x20, 0x94, 0x02, 0x24, 0x90, 0x82, 0xa4, 0xa2,
0x82, 0x09, 0x0a, 0x22, 0x12, 0x10, 0x42, 0x14,
0x91, 0x4a, 0x91, 0x11, 0x08, 0x12, 0x25, 0x10,
0x22, 0xa8, 0x14, 0x24, 0x00, 0x50, 0x24, 0x04
};
-static uint8 splatterStart[128] = { /* starting bit position */
+static const uint8 splatterStart[128] = { /* starting bit position */
0x00, 0x18, 0x30, 0xc4, 0xdc, 0x65, 0xeb, 0x48,
0x60, 0xbd, 0x89, 0x05, 0x0a, 0xf4, 0x7d, 0x7d,
0x85, 0xb0, 0x8e, 0x95, 0x1f, 0x22, 0x0d, 0xdf,