[Scummvm-cvs-logs] SF.net SVN: scummvm: [28846] scummvm/trunk/engines/agi/picture.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Mon Sep 3 14:23:20 CEST 2007
Revision: 28846
http://scummvm.svn.sourceforge.net/scummvm/?rev=28846&view=rev
Author: fingolfin
Date: 2007-09-03 05:23:19 -0700 (Mon, 03 Sep 2007)
Log Message:
-----------
Make static data tables const (helps the optimizer a bit)
Modified Paths:
--------------
scummvm/trunk/engines/agi/picture.cpp
Modified: scummvm/trunk/engines/agi/picture.cpp
===================================================================
--- scummvm/trunk/engines/agi/picture.cpp 2007-09-03 10:25:48 UTC (rev 28845)
+++ scummvm/trunk/engines/agi/picture.cpp 2007-09-03 12:23:19 UTC (rev 28846)
@@ -44,7 +44,7 @@
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 @@
{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,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list