mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 15:26:09 +00:00
Fix window resizing on Windows with software decoding
This commit is contained in:
parent
e76780e105
commit
ecfcedad58
@ -496,6 +496,11 @@ bool SdlRenderer::testRenderFrame(AVFrame* frame)
|
|||||||
|
|
||||||
bool SdlRenderer::notifyWindowChanged(PWINDOW_STATE_CHANGE_INFO info)
|
bool SdlRenderer::notifyWindowChanged(PWINDOW_STATE_CHANGE_INFO info)
|
||||||
{
|
{
|
||||||
// We can transparently handle size and display changes
|
// We can transparently handle size and display changes, except Windows where
|
||||||
|
// changing size appears to break the renderer (maybe due to the render thread?)
|
||||||
|
#ifdef Q_OS_WIN32
|
||||||
|
return !(info->stateChangeFlags & ~(WINDOW_STATE_CHANGE_DISPLAY));
|
||||||
|
#else
|
||||||
return !(info->stateChangeFlags & ~(WINDOW_STATE_CHANGE_SIZE | WINDOW_STATE_CHANGE_DISPLAY));
|
return !(info->stateChangeFlags & ~(WINDOW_STATE_CHANGE_SIZE | WINDOW_STATE_CHANGE_DISPLAY));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user