mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Merge pull request #1766 from LordSk/fix/broadcast_mapscreen
Fixed broadcast appearing at an odd position
This commit is contained in:
commit
497d2fd0bf
|
@ -58,6 +58,8 @@ void CBroadcast::RenderServerBroadcast()
|
||||||
if(m_pClient->m_pChat->IsActive() || m_pClient->Client()->State() != IClient::STATE_ONLINE)
|
if(m_pClient->m_pChat->IsActive() || m_pClient->Client()->State() != IClient::STATE_ONLINE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Graphics()->MapScreen(0, 0, Width, Height);
|
||||||
|
|
||||||
const float Fade = 1.0f - max(0.0f, (DeltaTime - DisplayStartFade) / (DisplayDuration - DisplayStartFade));
|
const float Fade = 1.0f - max(0.0f, (DeltaTime - DisplayStartFade) / (DisplayDuration - DisplayStartFade));
|
||||||
|
|
||||||
CUIRect ScreenRect = {0, 0, Width, Height};
|
CUIRect ScreenRect = {0, 0, Width, Height};
|
||||||
|
|
Loading…
Reference in a new issue