mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-04 19:20:43 +00:00
- use GZDoom's 2D drawer.
Console and menu font colors are not ok yet, aside from that it works.
This commit is contained in:
parent
2f672da7ba
commit
55a3c62b59
58 changed files with 2738 additions and 1719 deletions
|
@ -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],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue