mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix wrongly used viewport parameters
This commit is contained in:
parent
e06b3d9579
commit
0b5122d751
|
@ -2270,7 +2270,7 @@ void CGraphics_Threaded::AdjustViewport(bool SendViewportChangeToBackend)
|
|||
|
||||
if(SendViewportChangeToBackend)
|
||||
{
|
||||
UpdateViewport(0, 0, m_ScreenWidth, m_ScreenWidth, true);
|
||||
UpdateViewport(0, 0, m_ScreenWidth, m_ScreenHeight, true);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -2594,7 +2594,7 @@ void CGraphics_Threaded::GotResized(int w, int h, int RefreshRate)
|
|||
g_Config.m_GfxScreenRefreshRate = m_ScreenRefreshRate;
|
||||
m_ScreenHiDPIScale = m_ScreenWidth / (float)g_Config.m_GfxScreenWidth;
|
||||
|
||||
UpdateViewport(0, 0, m_ScreenWidth, m_ScreenWidth, true);
|
||||
UpdateViewport(0, 0, m_ScreenWidth, m_ScreenHeight, true);
|
||||
|
||||
// kick the command buffer and wait
|
||||
KickCommandBuffer();
|
||||
|
|
Loading…
Reference in a new issue