aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2012-11-05 04:26:12 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2012-11-05 04:26:12 +0100
commit137b99160597e9e7141b7c7b3f891671734fc159 (patch)
tree8ac9f3fc18ef68b904a0131e3abd0b207cf44608
parentbump NEWS (diff)
downloadglouglou-137b99160597e9e7141b7c7b3f891671734fc159.tar.xz
glouglou-137b99160597e9e7141b7c7b3f891671734fc159.zip
redraw cell in grid_pattern_inject()
fixes pattern injection on mouse down
-rw-r--r--src/elife_evas_smart.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/elife_evas_smart.c b/src/elife_evas_smart.c
index cca8ef5..8d2dccd 100644
--- a/src/elife_evas_smart.c
+++ b/src/elife_evas_smart.c
@@ -278,6 +278,8 @@ grid_inject_pattern(struct grid *grid)
continue;
cell = CELL_GET(grid, cx, cy);
cell->newage = (pat->pat[pat->w*j + i] - '0') * 27;
+ cell->age = cell->newage;
+ cell_redraw(cell, grid);
}
}
}