From 2079b731945d1ebfdf0a0c814b98fd46c8c6f5e6 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 3 Feb 2001 04:04:22 +0000 Subject: [PATCH] fix gl_conalpha/scr_consize interaction --- include/screen.h | 1 + source/gl_draw.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/screen.h b/include/screen.h index 91a9d5c..0dcae4e 100644 --- a/include/screen.h +++ b/include/screen.h @@ -52,6 +52,7 @@ extern int clearnotify; // set to 0 whenever notify text is drawn extern qboolean scr_disabled_for_loading; extern cvar_t *scr_viewsize; +extern cvar_t *scr_consize; // only the refresh window will be updated unless these variables are flagged extern int scr_copytop; diff --git a/source/gl_draw.c b/source/gl_draw.c index 551599c..b2cd356 100644 --- a/source/gl_draw.c +++ b/source/gl_draw.c @@ -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 {