[gnome-music/wip/mschraal/assorted-art-fixes: 11/12] artcache: Minimize rounding on small art
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/assorted-art-fixes: 11/12] artcache: Minimize rounding on small art
- Date: Sat, 22 May 2021 20:02:37 +0000 (UTC)
commit 1fffed95e671d46b1595c1968f6b794b57c6808f
Author: Marinus Schraal <mschraal gnome org>
Date: Sun Apr 11 00:19:27 2021 +0200
artcache: Minimize rounding on small art
gnomemusic/artcache.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gnomemusic/artcache.py b/gnomemusic/artcache.py
index eb8da1dad..70f17c52b 100644
--- a/gnomemusic/artcache.py
+++ b/gnomemusic/artcache.py
@@ -51,7 +51,10 @@ def _make_icon_frame(
:rtype: cairo.Surface
"""
degrees = pi / 180
- radius = 8
+ if art_size == ArtSize.SMALL:
+ radius = 2
+ else:
+ radius = 8
icon_w = icon_surface.get_width()
icon_h = icon_surface.get_height()
ratio = icon_h / icon_w
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]