summaryrefslogtreecommitdiff
path: root/libgame/game-graphic.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgame/game-graphic.c')
-rw-r--r--libgame/game-graphic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libgame/game-graphic.c b/libgame/game-graphic.c
index 7363eae..c73b55b 100644
--- a/libgame/game-graphic.c
+++ b/libgame/game-graphic.c
@@ -288,8 +288,10 @@ game_graphic_draw_area_no_cache (GameGraphic *graphic, cairo_t *cr,
GameGraphicClass *klass;
cairo_save (cr);
- cairo_rectangle (cr, rect->x1, rect->y1, rect->x2 - rect->x1, rect->y2 - rect->y1);
+
+ game_rectangle_path (cr, &graphic->rect);
cairo_clip (cr);
+
klass = GAME_GRAPHIC_GET_CLASS (graphic);
g_return_val_if_fail (klass->draw, FALSE);
klass->draw (graphic, cr, rect);