fix gl_conalpha/scr_consize interaction

This commit is contained in:
Bill Currie 2001-02-03 04:04:22 +00:00
parent 4acdf6d3b2
commit 2079b73194
2 changed files with 3 additions and 1 deletions

View file

@ -44,6 +44,7 @@
#include "draw.h"
#include "glquake.h"
#include "sbar.h"
#include "screen.h"
#include "sys.h"
static int GL_LoadPicTexture (qpic_t *pic);
@ -683,7 +684,7 @@ Draw_ConsoleBackground (int lines)
else
ofs = (vid.conheight - lines) / (float) vid.conheight;
y = vid.height >> 1;
y = vid.height * scr_consize->value;
if (lines > y) {
alpha = 1.0;
} else {