diff options
author | Max Horn | 2005-02-22 18:24:24 +0000 |
---|---|---|
committer | Max Horn | 2005-02-22 18:24:24 +0000 |
commit | e7b8a1eada84dc51e68bafbbf4f89903003d3c3f (patch) | |
tree | d4255561e0c7414c29768aa7db36ba121b5a9702 /scumm | |
parent | 039b2b3a200c07963533c9db7cf6837fd77f4c9e (diff) | |
download | scummvm-rg350-e7b8a1eada84dc51e68bafbbf4f89903003d3c3f.tar.gz scummvm-rg350-e7b8a1eada84dc51e68bafbbf4f89903003d3c3f.tar.bz2 scummvm-rg350-e7b8a1eada84dc51e68bafbbf4f89903003d3c3f.zip |
Added consts (this usually helps the compiler a bit when optimizing code)
svn-id: r16863
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/gfx.cpp | 4 | ||||
-rw-r--r-- | scumm/smush/codec47.cpp | 4 |
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, |