[gnome-games] aisleriot: Change drag mask drawing
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] aisleriot: Change drag mask drawing
- Date: Sun, 15 Aug 2010 21:51:27 +0000 (UTC)
commit 55f304d688f9788ffcc73552f8239f82bdedf074
Author: Christian Persch <chpe gnome org>
Date: Sun Aug 15 23:50:41 2010 +0200
aisleriot: Change drag mask drawing
Just use cairo_paint() with the card pattern, instead of cairo_mask().
aisleriot/board-noclutter.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/aisleriot/board-noclutter.c b/aisleriot/board-noclutter.c
index b7c8cab..849ba85 100644
--- a/aisleriot/board-noclutter.c
+++ b/aisleriot/board-noclutter.c
@@ -1030,7 +1030,7 @@ drag_begin (AisleriotBoard *board)
cairo_set_operator (cr2, CAIRO_OPERATOR_CLEAR);
cairo_paint (cr2);
- cairo_set_operator (cr2, CAIRO_OPERATOR_SOURCE);
+ cairo_set_operator (cr2, CAIRO_OPERATOR_OVER);
cairo_set_source_rgb (cr2, 0., 0., 0.);
#else
@@ -1074,11 +1074,12 @@ drag_begin (AisleriotBoard *board)
pattern = cairo_pattern_create_for_surface (surface);
cairo_matrix_init_translate (&matrix, -x, -y);
cairo_pattern_set_matrix (pattern, &matrix);
- cairo_set_source (cr1, pattern);
+ cairo_set_source (cr1, pattern);
cairo_paint (cr1);
- cairo_mask (cr2, pattern);
+ cairo_set_source (cr2, pattern);
+ cairo_paint (cr2);
cairo_pattern_destroy (pattern);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]