[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.389,2.390
Max Horn
fingolfin at users.sourceforge.net
Tue Feb 22 10:25:46 CET 2005
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10530
Modified Files:
gfx.cpp
Log Message:
Added consts (this usually helps the compiler a bit when optimizing code)
Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.389
retrieving revision 2.390
diff -u -d -r2.389 -r2.390
--- gfx.cpp 20 Feb 2005 01:37:47 -0000 2.389
+++ gfx.cpp 22 Feb 2005 18:24:00 -0000 2.390
@@ -545,7 +545,7 @@
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 @@
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},
More information about the Scummvm-git-logs
mailing list