mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 18:35:45 -04:00
Support custom and match display aspect ratios
This commit is contained in:
@ -575,6 +575,8 @@ void CommonHostInterface::OnHostDisplayResized()
|
||||
const u32 new_height = m_display ? m_display->GetWindowHeight() : 0;
|
||||
const float new_scale = m_display ? m_display->GetWindowScale() : 1.0f;
|
||||
|
||||
HostInterface::OnHostDisplayResized();
|
||||
|
||||
ImGui::GetIO().DisplaySize.x = static_cast<float>(new_width);
|
||||
ImGui::GetIO().DisplaySize.y = static_cast<float>(new_height);
|
||||
|
||||
|
@ -412,13 +412,13 @@ protected:
|
||||
void UpdateSpeedLimiterState();
|
||||
|
||||
void RecreateSystem() override;
|
||||
void OnHostDisplayResized() override;
|
||||
|
||||
void ApplyGameSettings(bool display_osd_messages);
|
||||
void ApplyControllerCompatibilitySettings(u64 controller_mask, bool display_osd_messages);
|
||||
|
||||
bool CreateHostDisplayResources();
|
||||
void ReleaseHostDisplayResources();
|
||||
void OnHostDisplayResized();
|
||||
|
||||
virtual void DrawImGuiWindows();
|
||||
|
||||
|
Reference in New Issue
Block a user