summaryrefslogtreecommitdiff
path: root/src/mesa/main/pixel.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-10-24 13:46:39 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-10-24 13:46:39 +0000
commit6340d6bf22ad0bfedf8565500336237a8da887f5 (patch)
treee65c5e81822f886b32800fe212b97f2d30914d97 /src/mesa/main/pixel.c
parent59e1f3ddd8b1bff2c2e61b8b32a4444d082e1286 (diff)
s/GLchan/GLubyte/
Diffstat (limited to 'src/mesa/main/pixel.c')
-rw-r--r--src/mesa/main/pixel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/pixel.c b/src/mesa/main/pixel.c
index d20f89c543..4e47cdba89 100644
--- a/src/mesa/main/pixel.c
+++ b/src/mesa/main/pixel.c
@@ -1336,8 +1336,8 @@ _mesa_lookup_rgba_ubyte(const struct gl_color_table *table,
/* replace RGBA with LLLA */
if (table->Size == 256) {
for (i = 0; i < n; i++) {
- GLchan l = lut[rgba[i][RCOMP] * 2 + 0];
- GLchan a = lut[rgba[i][ACOMP] * 2 + 1];;
+ GLubyte l = lut[rgba[i][RCOMP] * 2 + 0];
+ GLubyte a = lut[rgba[i][ACOMP] * 2 + 1];;
rgba[i][RCOMP] =
rgba[i][GCOMP] =
rgba[i][BCOMP] = l;
@@ -1348,8 +1348,8 @@ _mesa_lookup_rgba_ubyte(const struct gl_color_table *table,
for (i = 0; i < n; i++) {
GLint jL = IROUND((GLfloat) rgba[i][RCOMP] * scale);
GLint jA = IROUND((GLfloat) rgba[i][ACOMP] * scale);
- GLchan luminance = lut[jL * 2 + 0];
- GLchan alpha = lut[jA * 2 + 1];
+ GLubyte luminance = lut[jL * 2 + 0];
+ GLubyte alpha = lut[jA * 2 + 1];
rgba[i][RCOMP] =
rgba[i][GCOMP] =
rgba[i][BCOMP] = luminance;