summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-10-13 23:24:48 -0700
committerBenjamin Otte <otte@redhat.com>2011-10-15 00:06:22 -0700
commit1cd11eed0f1e61c3baf31c45995374292cb2a3f8 (patch)
treee0ec7f1ce62301e9706c20227b973951b107b1ff
parent8f648b68986918ab57de202a3b0d0df430461ef9 (diff)
graphic: Remove game_cairo_pattern_matches()
Unused function.
-rw-r--r--libgame/game-graphic.c19
-rw-r--r--libgame/game-graphic.h4
2 files changed, 0 insertions, 23 deletions
diff --git a/libgame/game-graphic.c b/libgame/game-graphic.c
index c68525d..87ff772 100644
--- a/libgame/game-graphic.c
+++ b/libgame/game-graphic.c
@@ -261,22 +261,3 @@ game_graphic_draw_area (GameGraphic *graphic, cairo_t *cr, const
return cairo_status (cr) == CAIRO_STATUS_SUCCESS;
}
-gboolean
-game_cairo_pattern_matches (cairo_t *cr, cairo_pattern_t *pattern)
-{
- cairo_matrix_t cmatrix, pmatrix, result;
-
- g_return_val_if_fail (cr != NULL, FALSE);
- g_return_val_if_fail (pattern != NULL, FALSE);
-
- cairo_get_matrix (cr, &cmatrix);
- cairo_pattern_get_matrix (pattern, &pmatrix);
- cairo_matrix_invert (&pmatrix);
- cairo_matrix_multiply (&result, &cmatrix, &pmatrix);
- /* FIXME: need to somehow check surface types? */
- return GAME_DOUBLE_EQUAL (result.xx, 1.0) &&
- GAME_DOUBLE_EQUAL (result.yy, 1.0) &&
- GAME_DOUBLE_EQUAL (result.xy, 0.0) &&
- GAME_DOUBLE_EQUAL (result.yx, 0.0);
-}
-
diff --git a/libgame/game-graphic.h b/libgame/game-graphic.h
index cbbb57f..cf1a49f 100644
--- a/libgame/game-graphic.h
+++ b/libgame/game-graphic.h
@@ -74,10 +74,6 @@ gboolean game_graphic_draw_area (GameGraphic * graphic,
cairo_t * cr,
const GameRectangle * rectangle);
-/* FIXME: find a header/file for this */
-gboolean game_cairo_pattern_matches (cairo_t * cr,
- cairo_pattern_t * pattern);
-
G_END_DECLS