mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-30 16:00:55 +00:00
- some minor adjustments to the console init interface.
This commit is contained in:
parent
e3d21d09c9
commit
14776aebb6
3 changed files with 6 additions and 5 deletions
|
@ -212,14 +212,14 @@ CUSTOM_CVAR (Int, msgmidcolor2, CR_BROWN, CVAR_ARCHIVE)
|
|||
setmsgcolor (PRINTLEVELS+1, self);
|
||||
}
|
||||
|
||||
void C_InitConback(FTextureID fallback, bool tile)
|
||||
void C_InitConback(FTextureID fallback, bool tile, double brightness)
|
||||
{
|
||||
conback = TexMan.CheckForTexture ("CONBACK", ETextureType::MiscPatch);
|
||||
conflat = fallback;
|
||||
if (!conback.isValid())
|
||||
{
|
||||
conback.SetInvalid();
|
||||
conshade = MAKEARGB(175,0,0,0);
|
||||
conshade = MAKEARGB(uint8_t(255 - 255*brightness),0,0,0);
|
||||
conline = true;
|
||||
if (!tile) conback = fallback;
|
||||
}
|
||||
|
@ -616,7 +616,8 @@ void C_DrawConsole ()
|
|||
{
|
||||
if (conflat.isValid())
|
||||
{
|
||||
PalEntry pe((uint8_t(255 * con_alpha)), 64, 64, 64);
|
||||
int conbright = 255 - APART(conshade);
|
||||
PalEntry pe((uint8_t(255 * con_alpha)), conbright, conbright, conbright);
|
||||
twod->AddFlatFill(0, visheight - screen->GetHeight(), screen->GetWidth(), visheight, TexMan.GetGameTexture(conflat), 1, CleanXfac, pe, STYLE_Shaded);
|
||||
}
|
||||
else
|
||||
|
|
|
@ -58,7 +58,7 @@ extern constate_e ConsoleState;
|
|||
// Initialize the console
|
||||
void C_InitConsole (int width, int height, bool ingame);
|
||||
void C_DeinitConsole ();
|
||||
void C_InitConback(FTextureID fallback, bool tile);
|
||||
void C_InitConback(FTextureID fallback, bool tile, double lightlevel = 1.);
|
||||
|
||||
// Adjust the console for a new screen mode
|
||||
void C_NewModeAdjust (void);
|
||||
|
|
|
@ -3366,7 +3366,7 @@ static int D_DoomMain_Internal (void)
|
|||
TexMan.Init([]() { StartScreen->Progress(); }, CheckForHacks);
|
||||
PatchTextures();
|
||||
TexAnim.Init();
|
||||
C_InitConback(TexMan.CheckForTexture(gameinfo.BorderFlat, ETextureType::Flat), true);
|
||||
C_InitConback(TexMan.CheckForTexture(gameinfo.BorderFlat, ETextureType::Flat), true, 0.25);
|
||||
|
||||
FixWideStatusBar();
|
||||
|
||||
|
|
Loading…
Reference in a new issue