[gnome-music/wip/mschraal/assorted-art-fixes: 16/17] artcache: Minimize rounding on small art




commit e091310b3881e6c91902b84a6bcd65163b9bb2b5
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]