From 3c2994f72bbf8976390e63d7169981b89be253a9 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 3 Sep 2007 12:23:19 +0000 Subject: Make static data tables const (helps the optimizer a bit) svn-id: r28846 --- engines/agi/picture.cpp | 6 +++--- 1 file 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, -- cgit v1.2.3