diff options
author | Sean D'Epagnier <geckosenator@freedesktop.org> | 2006-08-10 10:21:17 +0000 |
---|---|---|
committer | Sean D'Epagnier <geckosenator@freedesktop.org> | 2006-08-10 10:21:17 +0000 |
commit | 7196cddb3a404292858101f9cd1a5061e422d2c1 (patch) | |
tree | aa3f79e21b08d9f114c7b1984e6c86c114081cfe /src/glut/fbdev/colormap.c | |
parent | 54e15d65858c1d1eeea7291059766686cf2e1671 (diff) |
Added initial multisampling support to glfbdev driver.
Fully implemented glutGameMode, and added vidresize stubs to make
Added support for glutReshapeDisplay to change video mode but not lose
current mesa context.
implementation glut 5 complient.
Fixed many minor bugs
Updated docs
Diffstat (limited to 'src/glut/fbdev/colormap.c')
-rw-r--r-- | src/glut/fbdev/colormap.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/glut/fbdev/colormap.c b/src/glut/fbdev/colormap.c index 9a6dea20dc..157296d15c 100644 --- a/src/glut/fbdev/colormap.c +++ b/src/glut/fbdev/colormap.c @@ -29,7 +29,6 @@ #include <linux/fb.h> #include <GL/gl.h> -#include <GL/glfbdev.h> #include <GL/glut.h> #include "internal.h" @@ -53,9 +52,9 @@ static void FindReverseMap(int r, int g, int b) unsigned int minv = -1, mini = 0; for(i=0; i<256; i++) { int val = 0; - val += abs(r-(ColorMap.red[i]>>shift)); - val += abs(g-(ColorMap.green[i]>>shift)); - val += abs(b-(ColorMap.blue[i]>>shift)); + val += abs(r-(RedColorMap[i]>>shift)); + val += abs(g-(GreenColorMap[i]>>shift)); + val += abs(b-(BlueColorMap[i]>>shift)); if(val < minv) { minv = val; mini = i; |