Skip to content

qml: fix drop shadow scaling

Pierre Lamot requested to merge chub/vlc:qml/drop-shadow-scale into master

This fixes shadows not being scaled correctly when item size changes or when DPR changes

the issue is illustrated bellow, effect is shown without the blur effect applied to make it easier to the issues

before now
bad aspect ratio bad-ar.png good_ar.png
bad shadow scaling (large source) bad_scale good_scale
bad shadow scaling (very small source) bad_scale2.png good_scale2.png

Image also scales correctly with DPR

1x 2x
high_dpi_1 high_dpi_2

Merge request reports

Loading