mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 19:45:47 -04:00
GPU/HW: Implement automatic resolution scale from window size
This commit is contained in:
@ -425,7 +425,10 @@ void QtHostInterface::onHostDisplayWindowResized(int width, int height)
|
||||
|
||||
// re-render the display, since otherwise it will be out of date and stretched if paused
|
||||
if (!System::IsShutdown())
|
||||
{
|
||||
g_gpu->UpdateResolutionScale();
|
||||
renderDisplay();
|
||||
}
|
||||
}
|
||||
|
||||
void QtHostInterface::redrawDisplayWindow()
|
||||
@ -538,7 +541,12 @@ void QtHostInterface::updateDisplayState()
|
||||
Panic("Failed to make device context current after updating");
|
||||
|
||||
connectDisplaySignals(display_widget);
|
||||
redrawDisplayWindow();
|
||||
|
||||
if (!System::IsShutdown())
|
||||
{
|
||||
g_gpu->UpdateResolutionScale();
|
||||
redrawDisplayWindow();
|
||||
}
|
||||
UpdateSpeedLimiterState();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user