Revert "Add startscreen_console cvar for showing the console during loading instead of the start screen"
This reverts commit 147a136e27.
This commit is contained in:
parent
147a136e27
commit
a0d15768bb
3 changed files with 14 additions and 31 deletions
|
|
@ -49,9 +49,6 @@
|
|||
#include "v_draw.h"
|
||||
#include "g_input.h"
|
||||
#include "texturemanager.h"
|
||||
#include "c_console.h"
|
||||
|
||||
CVAR(Bool, startscreen_console, false, CVAR_ARCHIVE | CVAR_GLOBALCONFIG);
|
||||
|
||||
// Text mode color values
|
||||
enum{
|
||||
|
|
@ -673,30 +670,22 @@ void FStartScreen::Render(bool force)
|
|||
float displayheight;
|
||||
twod->Begin(screen->GetWidth(), screen->GetHeight());
|
||||
|
||||
if (startscreen_console)
|
||||
// At this point the shader for untextured rendering has not been loaded yet, so we got to clear the screen by rendering a texture with black color.
|
||||
DrawTexture(twod, StartupTexture, 0, 0, DTA_VirtualWidthF, StartupTexture->GetDisplayWidth(), DTA_VirtualHeightF, StartupTexture->GetDisplayHeight(), DTA_KeepRatio, true, DTA_Color, PalEntry(255,0,0,0), TAG_END);
|
||||
|
||||
if (HeaderTexture)
|
||||
{
|
||||
C_FullConsole();
|
||||
C_DrawConsole();
|
||||
displaywidth = HeaderTexture->GetDisplayWidth();
|
||||
displayheight = HeaderTexture->GetDisplayHeight() + StartupTexture->GetDisplayHeight();
|
||||
DrawTexture(twod, HeaderTexture, 0, 0, DTA_VirtualWidthF, displaywidth, DTA_VirtualHeightF, displayheight, TAG_END);
|
||||
DrawTexture(twod, StartupTexture, 0, 32, DTA_VirtualWidthF, displaywidth, DTA_VirtualHeightF, displayheight, TAG_END);
|
||||
if (NetMaxPos >= 0) DrawTexture(twod, NetTexture, 0, displayheight - 16, DTA_VirtualWidthF, displaywidth, DTA_VirtualHeightF, displayheight, TAG_END);
|
||||
}
|
||||
else
|
||||
{
|
||||
// At this point the shader for untextured rendering has not been loaded yet, so we got to clear the screen by rendering a texture with black color.
|
||||
DrawTexture(twod, StartupTexture, 0, 0, DTA_VirtualWidthF, StartupTexture->GetDisplayWidth(), DTA_VirtualHeightF, StartupTexture->GetDisplayHeight(), DTA_KeepRatio, true, DTA_Color, PalEntry(255, 0, 0, 0), TAG_END);
|
||||
|
||||
if (HeaderTexture)
|
||||
{
|
||||
displaywidth = HeaderTexture->GetDisplayWidth();
|
||||
displayheight = HeaderTexture->GetDisplayHeight() + StartupTexture->GetDisplayHeight();
|
||||
DrawTexture(twod, HeaderTexture, 0, 0, DTA_VirtualWidthF, displaywidth, DTA_VirtualHeightF, displayheight, TAG_END);
|
||||
DrawTexture(twod, StartupTexture, 0, 32, DTA_VirtualWidthF, displaywidth, DTA_VirtualHeightF, displayheight, TAG_END);
|
||||
if (NetMaxPos >= 0) DrawTexture(twod, NetTexture, 0, displayheight - 16, DTA_VirtualWidthF, displaywidth, DTA_VirtualHeightF, displayheight, TAG_END);
|
||||
}
|
||||
else
|
||||
{
|
||||
displaywidth = StartupTexture->GetDisplayWidth();
|
||||
displayheight = StartupTexture->GetDisplayHeight();
|
||||
DrawTexture(twod, StartupTexture, 0, 0, DTA_VirtualWidthF, displaywidth, DTA_VirtualHeightF, displayheight, TAG_END);
|
||||
}
|
||||
displaywidth = StartupTexture->GetDisplayWidth();
|
||||
displayheight = StartupTexture->GetDisplayHeight();
|
||||
DrawTexture(twod, StartupTexture, 0, 0, DTA_VirtualWidthF, displaywidth, DTA_VirtualHeightF, displayheight, TAG_END);
|
||||
}
|
||||
|
||||
twod->End();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue