Fix resize glitches while paused
This commit is contained in:
@@ -1223,6 +1223,9 @@ OpenGLRenderer::resizeEvent(QResizeEvent *event)
|
|||||||
destination.y(),
|
destination.y(),
|
||||||
destination.width(),
|
destination.width(),
|
||||||
destination.height());
|
destination.height());
|
||||||
|
|
||||||
|
if (video_framerate == -1)
|
||||||
|
render();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ SoftwareRenderer::resizeEvent(QResizeEvent *event)
|
|||||||
#else
|
#else
|
||||||
QWindow::resizeEvent(event);
|
QWindow::resizeEvent(event);
|
||||||
m_backingStore->resize(event->size());
|
m_backingStore->resize(event->size());
|
||||||
|
render();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user