mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-31 17:21:46 +00:00
fix gl_conalpha/scr_consize interaction
This commit is contained in:
parent
4acdf6d3b2
commit
2079b73194
2 changed files with 3 additions and 1 deletions
|
@ -52,6 +52,7 @@ extern int clearnotify; // set to 0 whenever notify text is drawn
|
||||||
extern qboolean scr_disabled_for_loading;
|
extern qboolean scr_disabled_for_loading;
|
||||||
|
|
||||||
extern cvar_t *scr_viewsize;
|
extern cvar_t *scr_viewsize;
|
||||||
|
extern cvar_t *scr_consize;
|
||||||
|
|
||||||
// only the refresh window will be updated unless these variables are flagged
|
// only the refresh window will be updated unless these variables are flagged
|
||||||
extern int scr_copytop;
|
extern int scr_copytop;
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
#include "draw.h"
|
#include "draw.h"
|
||||||
#include "glquake.h"
|
#include "glquake.h"
|
||||||
#include "sbar.h"
|
#include "sbar.h"
|
||||||
|
#include "screen.h"
|
||||||
#include "sys.h"
|
#include "sys.h"
|
||||||
|
|
||||||
static int GL_LoadPicTexture (qpic_t *pic);
|
static int GL_LoadPicTexture (qpic_t *pic);
|
||||||
|
@ -683,7 +684,7 @@ Draw_ConsoleBackground (int lines)
|
||||||
else
|
else
|
||||||
ofs = (vid.conheight - lines) / (float) vid.conheight;
|
ofs = (vid.conheight - lines) / (float) vid.conheight;
|
||||||
|
|
||||||
y = vid.height >> 1;
|
y = vid.height * scr_consize->value;
|
||||||
if (lines > y) {
|
if (lines > y) {
|
||||||
alpha = 1.0;
|
alpha = 1.0;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue