summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorAdam Jackson <[email protected]>2004-11-03 18:55:31 +0000
committerAdam Jackson <[email protected]>2004-11-03 18:55:31 +0000
commit473fe6d6bfe039c27f0f1751dbdb9d49fe83ecb0 (patch)
tree0ae32fd47324b73902413da216430e21d20ec5bc /src/glx
parent5dd18e95d9aba8cc444a511808a1df15ca7a037a (diff)
constify a few arrays.
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/x11/pixel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/glx/x11/pixel.c b/src/glx/x11/pixel.c
index b279a8d73da..75960e40f55 100644
--- a/src/glx/x11/pixel.c
+++ b/src/glx/x11/pixel.c
@@ -36,7 +36,7 @@
#include "packrender.h"
-static GLubyte MsbToLsbTable[256] = {
+static const GLubyte MsbToLsbTable[256] = {
0x00, 0x80, 0x40, 0xc0, 0x20, 0xa0, 0x60, 0xe0,
0x10, 0x90, 0x50, 0xd0, 0x30, 0xb0, 0x70, 0xf0,
0x08, 0x88, 0x48, 0xc8, 0x28, 0xa8, 0x68, 0xe8,
@@ -71,11 +71,11 @@ static GLubyte MsbToLsbTable[256] = {
0x1f, 0x9f, 0x5f, 0xdf, 0x3f, 0xbf, 0x7f, 0xff,
};
-static GLubyte LowBitsMask[9] = {
+static const GLubyte LowBitsMask[9] = {
0x00, 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff,
};
-static GLubyte HighBitsMask[9] = {
+static const GLubyte HighBitsMask[9] = {
0x00, 0x80, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc, 0xfe, 0xff,
};