Fix media rotation animation.

This commit is contained in:
John Preston 2023-07-12 10:28:38 +04:00
parent 641a03c988
commit 8726884b21
1 changed files with 7 additions and 1 deletions

View File

@ -526,7 +526,13 @@ void OverlayWidget::RendererGL::paintTransformedContent(
geometry.controlsOpacity,
1.f - float(geometry.fade)));
if (!fillTransparentBackground) {
program->setUniformValue("roundRect", Uniform(rect));
program->setUniformValue(
"roundRect",
geometry.roundRadius ? Uniform(rect) : QVector4D(
0,
0,
_uniformViewport.x(),
_uniformViewport.y()));
program->setUniformValue(
"roundRadius",
GLfloat(geometry.roundRadius * _factor));