[gnome-games] mahjongg: Cairo.Surface.similar for caching pieces.



commit 4fe132333dad2f65cb85d21b5ea884b1ecbd3d66
Author: Tiffany Antopolski <tiffany antopolski gmail com>
Date:   Tue Jan 24 19:35:27 2012 -0500

    mahjongg: Cairo.Surface.similar for caching pieces.
    
    bug #668552

 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 961776f..9217eff 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.ImageSurface (Cairo.Format.ARGB32, width, height);
+            var surface = new Cairo.Surface.similar (cr.get_target (), Cairo.Content.COLOR, 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]