[gnome-games] mahjongg: Use Cairo.Content.COLOR_ALPHA for images as they do have an alpha channel



commit 6dbf2c0ff6a841383429074badd4dcad15e47bad
Author: Robert Ancell <robert ancell canonical com>
Date:   Sat Feb 4 21:45:03 2012 +1100

    mahjongg: Use Cairo.Content.COLOR_ALPHA for images as they do have an alpha channel

 mahjongg/src/game-view.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/mahjongg/src/game-view.vala b/mahjongg/src/game-view.vala
index 9217eff..9197b2e 100644
--- a/mahjongg/src/game-view.vala
+++ b/mahjongg/src/game-view.vala
@@ -71,7 +71,7 @@ public class GameView : Gtk.DrawingArea
             var width = image_width * 43;
             var height = image_height * 2;
 
-            var surface = new Cairo.Surface.similar (cr.get_target (), Cairo.Content.COLOR, width, height);
+            var surface = new Cairo.Surface.similar (cr.get_target (), Cairo.Content.COLOR_ALPHA, width, height);
             var c = new Cairo.Context (surface);
             var pixbuf = theme.render (width, height);
             if (pixbuf == null)



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