mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-06 07:41:17 +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 */
|
/* 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;
|
||||||
|
|
Loading…
Reference in a new issue