mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix media rotation animation.
This commit is contained in:
parent
641a03c988
commit
8726884b21
1 changed files with 7 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue