will not affect high dpi
This commit is contained in:
parent
6cb95f2d10
commit
62688546ee
1 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@
|
|||
},
|
||||
watch: {
|
||||
windowRelativeScale: function (newValue, oldValue) {
|
||||
this.swapImage(newScale)
|
||||
this.swapImage(newValue)
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
@ -88,7 +88,7 @@
|
|||
},
|
||||
methods: {
|
||||
swapImage(newValue) {
|
||||
if(!this.upscaling) return
|
||||
if(!this.upscaling || window.devicePixelRatio !== 1) return
|
||||
if (newValue > 1.5) {
|
||||
this.imgSrc = app.getMediaItemArtwork(this.url, parseInt(this.size * 2.0), parseInt(this.size * 2.0));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue