diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-05-02 14:35:58 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-05-02 14:35:58 -0400 |
| commit | aae4f1522fa3471b341891236143aeac057b9619 (patch) | |
| tree | 3d466de84e2948d51984ee4ca4d24cd0242c3bcf /widget.c | |
| parent | 0307f0efa3aaabc887212c9535fd22560902cebd (diff) | |
| download | volute-aae4f1522fa3471b341891236143aeac057b9619.zip | |
clear canvas before redrawing point
Diffstat (limited to 'widget.c')
| -rw-r--r-- | widget.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -390,3 +390,9 @@ w_canvas_draw_circle(w_Canvas *canvas, int x, int y, int r, mu_Color color) { r_canvas_draw_circle(canvas->id, x, y, r, color); canvas->dirty = 1; } + +void +w_clear_canvas(w_Canvas *canvas) { + r_clear_canvas(canvas->id); + canvas->dirty = 1; +} |