Undid all the disabling of DGA. All of the sudden it works just fine. It

begs the question: What the HELL was wrong with it before and who fixed it
without telling me?!  =D
This commit is contained in:
Joseph Carter 2000-04-28 20:37:25 +00:00
parent 3e10387288
commit d01388261c
3 changed files with 8 additions and 5 deletions

View file

@ -33,6 +33,8 @@
#include <X11/Xlib.h>
extern cvar_t *vid_dga_mouseaccel;
/*
VID_CheckDGA

View file

@ -807,7 +807,7 @@ void Draw_ConsoleBackground (int lines)
gl = (glpic_t *)conback->data;
y = vid.height * 0.9;
if (lines > y)
if (lines > y || gl_conalpha->value >= 1.0)
alpha = 1;
else
alpha = (float)(gl_conalpha->value * 2 * lines)/y;

View file

@ -42,9 +42,9 @@
#include <draw.h>
#include <context_x11.h>
#ifndef _EXPERIMENTAL_
# undef HAS_DGA
#endif
//#ifndef _EXPERIMENTAL_
//# undef HAS_DGA
//#endif
#include <stdio.h>
#include <stdlib.h>
@ -485,6 +485,7 @@ void VID_Init(unsigned char *palette)
hasvidmode = 0;
}
}
Con_SafePrintf ("hasdga = %i\nhasdgavideo = %i\nnummodes = %i\nhasvidmode = %i\n", hasdga, hasdgavideo, nummodes, hasvidmode);
#endif
#ifdef HAVE_DLOPEN
dlhand = dlopen(NULL, RTLD_LAZY);
@ -514,7 +515,7 @@ void VID_Init(unsigned char *palette)
#endif
/* Glide uses DGA internally, so we don't want to
mess with it. */
hasdga = 0;
// hasdga = 0;
}
/* window attributes */