- use the border flat as console fallback instead of the title pic.
This tends to work a lot better because it has far lower contrast.
This commit is contained in:
parent
0e4625867e
commit
964417947f
5 changed files with 20 additions and 9 deletions
|
|
@ -89,6 +89,7 @@ void C_SetNotifyFontScale(double scale)
|
|||
FConsoleBuffer *conbuffer;
|
||||
|
||||
static FTextureID conback;
|
||||
static FTextureID conflat;
|
||||
static uint32_t conshade;
|
||||
static bool conline;
|
||||
|
||||
|
|
@ -211,10 +212,10 @@ CUSTOM_CVAR (Int, msgmidcolor2, CR_BROWN, CVAR_ARCHIVE)
|
|||
setmsgcolor (PRINTLEVELS+1, self);
|
||||
}
|
||||
|
||||
void C_InitConback()
|
||||
void C_InitConback(FTextureID fallback, bool tile)
|
||||
{
|
||||
conback = TexMan.CheckForTexture ("CONBACK", ETextureType::MiscPatch);
|
||||
|
||||
conflat = fallback;
|
||||
if (!conback.isValid())
|
||||
{
|
||||
conback.SetInvalid();
|
||||
|
|
@ -225,6 +226,7 @@ void C_InitConback()
|
|||
{
|
||||
conshade = 0;
|
||||
conline = false;
|
||||
if (!tile) conback = fallback;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -612,8 +614,16 @@ void C_DrawConsole ()
|
|||
}
|
||||
else
|
||||
{
|
||||
PalEntry pe((uint8_t)(con_alpha * 255), 0, 0, 0);
|
||||
twod->AddColorOnlyQuad(0, 0, screen->GetWidth(), visheight, pe);
|
||||
if (conflat.isValid())
|
||||
{
|
||||
PalEntry pe((uint8_t(255 * con_alpha)), 64, 64, 64);
|
||||
twod->AddFlatFill(0, visheight - screen->GetHeight(), screen->GetWidth(), visheight, TexMan.GetGameTexture(conflat), 1, CleanXfac, pe, STYLE_Shaded);
|
||||
}
|
||||
else
|
||||
{
|
||||
PalEntry pe((uint8_t)(con_alpha * 255), 0, 0, 0);
|
||||
twod->AddColorOnlyQuad(0, 0, screen->GetWidth(), visheight, pe);
|
||||
}
|
||||
}
|
||||
|
||||
if (conline && visheight < screen->GetHeight())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue