setup the colormap /before/ calling Vid_InitGamma so VID_SetPalette gets

called with a valid colormap to update.
This commit is contained in:
Bill Currie 2001-10-29 06:46:46 +00:00
parent d04edfaaf2
commit 1d442c496f

View file

@ -487,8 +487,6 @@ VID_Init (unsigned char *palette)
/* Invisible cursor */ /* Invisible cursor */
X11_CreateNullCursor (); X11_CreateNullCursor ();
VID_InitGamma (palette);
VID_SetPalette (palette);
if (x_visinfo->depth == 8) { if (x_visinfo->depth == 8) {
/* Create and upload the palette */ /* Create and upload the palette */
if (x_visinfo->class == PseudoColor) { if (x_visinfo->class == PseudoColor) {
@ -497,6 +495,10 @@ VID_Init (unsigned char *palette)
XSetWindowColormap (x_disp, x_win, x_cmap); XSetWindowColormap (x_disp, x_win, x_cmap);
} }
} }
VID_InitGamma (palette);
VID_SetPalette (palette);
// create the GC // create the GC
{ {
XGCValues xgcvalues; XGCValues xgcvalues;