- use GZDoom's 2D drawer.

Console and menu font colors are not ok yet, aside from that it works.
This commit is contained in:
Christoph Oelckers 2020-05-25 17:11:32 +02:00
parent 2f672da7ba
commit 55a3c62b59
58 changed files with 2738 additions and 1719 deletions

View file

@ -112,6 +112,8 @@ void DFrameBuffer::SetSize(int width, int height)
{
Width = ViewportScaledWidth(width, height);
Height = ViewportScaledHeight(width, height);
twodgen.SetSize(Width, Height);
twodpsp.SetSize(Width, Height);
}
//==========================================================================
@ -129,7 +131,7 @@ void DFrameBuffer::DrawRateStuff ()
{
FString fpsbuff = gi->statFPS();
int textScale = active_con_scale();
int textScale = active_con_scale(twod);
int rate_x = Width / textScale - NewConsoleFont->StringWidth(&fpsbuff[0]);
twod->AddColorOnlyQuad(rate_x * textScale, 0, Width, NewConsoleFont->GetHeight() * textScale, MAKEARGB(255,0,0,0));
DrawText (twod, NewConsoleFont, CR_WHITE, rate_x, 0, (char *)&fpsbuff[0],