Fix console background when using oversized font characters

git-svn-id: https://svn.eduke32.com/eduke32@6383 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2017-07-27 09:13:26 +00:00
parent b00266b47f
commit 1fd79171d8

View file

@ -144,16 +144,16 @@ void GAME_clearbackground(int32_t numcols, int32_t numrows)
# ifdef USE_OPENGL
if (getrendermode() >= REND_POLYMOST && qsetmode==200)
{
const int32_t i8n8 = OSD_SCALE(8*numrows);
const int32_t i8n8 = OSD_SCALE(OSDCHAR_HEIGHT*numrows);
// bglPushAttrib(GL_FOG_BIT);
bglDisable(GL_FOG);
setpolymost2dview();
bglColor4f(0.f, 0.f, 0.f, 0.67f);
bglEnable(GL_BLEND);
bglRecti(0, 0, xdim, i8n8+8);
bglRecti(0, 0, xdim, i8n8+OSDCHAR_HEIGHT);
bglColor4f(0.f, 0.f, 0.f, 1.f);
bglRecti(0, i8n8+4, xdim, i8n8+8);
bglRecti(0, i8n8+4, xdim, i8n8+OSDCHAR_HEIGHT);
if (!nofog)
bglEnable(GL_FOG);
// bglPopAttrib();
@ -162,7 +162,7 @@ void GAME_clearbackground(int32_t numcols, int32_t numrows)
}
# endif
CLEARLINES2D(0, min(ydim, OSD_SCALE(numrows*8+8)), editorcolors[16]);
CLEARLINES2D(0, min(ydim, OSD_SCALE(numrows*OSDCHAR_HEIGHT+OSDCHAR_HEIGHT)), editorcolors[16]);
}
#undef OSD_SCALE