aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/gfx.cpp4
-rw-r--r--scumm/smush/codec47.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index 9a2479d18a..92c0019641 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -545,7 +545,7 @@ void Gdi::drawStripToScreen(VirtScreen *vs, int x, int width, int top, int botto
void Gdi::ditherCGA(byte *dst, int dstPitch, int x, int y, int width, int height) const {
byte *ptr;
int idx1, idx2;
- static byte cgaDither[2][2][16] = {
+ static const byte cgaDither[2][2][16] = {
{{0, 1, 0, 1, 2, 2, 0, 0, 3, 1, 3, 1, 3, 2, 1, 3},
{0, 0, 1, 1, 0, 2, 2, 3, 0, 3, 1, 1, 3, 3, 1, 3}},
{{0, 0, 1, 1, 0, 2, 2, 3, 0, 3, 1, 1, 3, 3, 1, 3},
@@ -579,7 +579,7 @@ void Gdi::ditherHerc(byte *src, byte *hercbuf, int srcPitch, int *x, int *y, int
byte *srcptr, *dstptr;
int xo = *x, yo = *y, widtho = *width, heighto = *height;
int idx1, idx2, dsty = 0;
- static byte cgaDither[2][2][16] = {
+ static const byte cgaDither[2][2][16] = {
{{0, 1, 0, 1, 2, 2, 0, 0, 3, 1, 3, 1, 3, 2, 1, 3},
{0, 0, 1, 1, 0, 2, 2, 3, 0, 3, 1, 1, 3, 3, 1, 3}},
{{0, 0, 1, 1, 0, 2, 2, 3, 0, 3, 1, 1, 3, 3, 1, 3},
diff --git a/scumm/smush/codec47.cpp b/scumm/smush/codec47.cpp
index c8d40a7102..d30877a389 100644
--- a/scumm/smush/codec47.cpp
+++ b/scumm/smush/codec47.cpp
@@ -84,9 +84,9 @@ static int8 codec47_table_big2[] = {
};
#ifdef __PALM_OS__
-static int8 *codec47_table;
+static const int8 *codec47_table;
#else
-static int8 codec47_table[] = {
+static const int8 codec47_table[] = {
0, 0, -1, -43, 6, -43, -9, -42, 13, -41,
-16, -40, 19, -39, -23, -36, 26, -34, -2, -33,
4, -33, -29, -32, -9, -32, 11, -31, -16, -29,