mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
setup the colormap /before/ calling Vid_InitGamma so VID_SetPalette gets
called with a valid colormap to update.
This commit is contained in:
parent
d04edfaaf2
commit
1d442c496f
1 changed files with 4 additions and 2 deletions
|
@ -487,8 +487,6 @@ VID_Init (unsigned char *palette)
|
|||
/* Invisible cursor */
|
||||
X11_CreateNullCursor ();
|
||||
|
||||
VID_InitGamma (palette);
|
||||
VID_SetPalette (palette);
|
||||
if (x_visinfo->depth == 8) {
|
||||
/* Create and upload the palette */
|
||||
if (x_visinfo->class == PseudoColor) {
|
||||
|
@ -497,6 +495,10 @@ VID_Init (unsigned char *palette)
|
|||
XSetWindowColormap (x_disp, x_win, x_cmap);
|
||||
}
|
||||
}
|
||||
|
||||
VID_InitGamma (palette);
|
||||
VID_SetPalette (palette);
|
||||
|
||||
// create the GC
|
||||
{
|
||||
XGCValues xgcvalues;
|
||||
|
|
Loading…
Reference in a new issue