Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
52f1fe41 by Fatih Uzunoglu at 2026-06-08T11:12:34+02:00
qml: make background cover fractional scale extension in `MainDisplay` layer

This fixes artifacting with fractional scale when mini player is shown and
playlist pane is closed.

Regression since f5be290d.

- - - - -


1 changed file:

- modules/gui/qt/maininterface/qml/MainDisplay.qml


Changes:

=====================================
modules/gui/qt/maininterface/qml/MainDisplay.qml
=====================================
@@ -324,9 +324,16 @@ FocusScope {
                 }
 
                 Rectangle {
-                    // Extension of parent rectangle for edge extension.
+                    // Extension of parent rectangle for edge and fractional 
scale alignment extension.
                     anchors.fill: parent
-                    anchors.margins: -stackViewParent.edgeExtension
+                    anchors.margins: -(stackViewParent.edgeExtension + 
fractionalScaleExtensionSize)
+
+                    // With fractional scale, if we align up the layer size to 
make sure the size is
+                    // an integer, we also need to extend here because the 
background must cover the
+                    // extension area. 8 should be enough for the fractions 
that we care (.25, .5, .75).
+                    // Note that the background extension here does not 
consume additional video memory.
+                    readonly property real fractionalScaleExtensionSize: 
(stackViewParent.alignNumber > 1 ? 8.0 : 0.0)
+
                     visible: stackViewParent.layer.enabled && (height > 0 && 
width > 0)
                     // We can't simply adjust the color because the color 
might not be opaque,
                     // so we use border instead. Note that border is always 
placed inside the



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/52f1fe41f122bdc3846fc68bf1a7952667408ded

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/52f1fe41f122bdc3846fc68bf1a7952667408ded
You're receiving this email because of your account on code.videolan.org. 
Manage all notifications: https://code.videolan.org/-/profile/notifications | 
Help: https://code.videolan.org/help


_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to