SDL: Reimplement improved fullscreen toggling

This commit is contained in:
Connor McLaughlin
2020-02-28 16:59:46 +10:00
parent f03de090c4
commit a0a0cd48fa
4 changed files with 30 additions and 27 deletions

View File

@ -157,6 +157,8 @@ std::tuple<u32, u32> D3D11HostDisplay::GetWindowSize() const
void D3D11HostDisplay::WindowResized()
{
SDL_GetWindowSize(m_window, &m_window_width, &m_window_height);
ImGui::GetIO().DisplaySize.x = static_cast<float>(m_window_width);
ImGui::GetIO().DisplaySize.y = static_cast<float>(m_window_height);
m_swap_chain_rtv.Reset();