[gnome-games/wip/exalm/hidpi: 2/7] game-thumbnail: Use 1.0 opacity for masking



commit 0da09d7bcd5f87537c486215ae861406c8daabfc
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Sat Aug 17 01:47:38 2019 +0500

    game-thumbnail: Use 1.0 opacity for masking
    
    Don't draw mask with 0.9 opacity. It was added in the following commit,
    for the reasons unknown: 9e96435adbe47a87ae15dcd7ffff7da0e3d95fc3
    
    Fixes https://gitlab.gnome.org/GNOME/gnome-games/issues/186

 src/ui/game-thumbnail.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/ui/game-thumbnail.vala b/src/ui/game-thumbnail.vala
index f5707b8a..05f8776f 100644
--- a/src/ui/game-thumbnail.vala
+++ b/src/ui/game-thumbnail.vala
@@ -316,7 +316,7 @@ private class Games.GameThumbnail : Gtk.DrawingArea {
                border_radius = border_radius.clamp (0, int.max (context.width / 2, context.height / 2));
 
                var cr = new Cairo.Context (mask);
-               cr.set_source_rgba (0, 0, 0, 0.9);
+               cr.set_source_rgb (0, 0, 0);
                rounded_rectangle (cr, 0.5, 0.5, context.width - 1, context.height - 1, border_radius);
                cr.fill ();
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]