mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 18:25:45 -04:00
Vulkan/SwapChain: Ensure returned height is at least 1x1
This commit is contained in:
@ -571,8 +571,8 @@ void CommonHostInterface::ReleaseHostDisplayResources()
|
||||
|
||||
void CommonHostInterface::OnHostDisplayResized()
|
||||
{
|
||||
const u32 new_width = m_display ? std::max<u32>(m_display->GetWindowWidth(), 1) : 0;
|
||||
const u32 new_height = m_display ? std::max<u32>(m_display->GetWindowHeight(), 1) : 0;
|
||||
const u32 new_width = m_display ? m_display->GetWindowWidth() : 0;
|
||||
const u32 new_height = m_display ? m_display->GetWindowHeight() : 0;
|
||||
const float new_scale = m_display ? m_display->GetWindowScale() : 1.0f;
|
||||
|
||||
ImGui::GetIO().DisplaySize.x = static_cast<float>(new_width);
|
||||
|
Reference in New Issue
Block a user