Fix window resizing on Windows with software decoding
This commit is contained in:
parent
e76780e105
commit
ecfcedad58
1 changed files with 6 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue