diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-05-02 20:54:00 -0230 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-05-02 20:54:00 -0230 |
| commit | e977059a478178101eda2e6771d52f21b135248c (patch) | |
| tree | cfc1d592479cd4bc030041dcf106a224a65fa91c /widget.c | |
| parent | 08ddaa509e254c335a13417b157d4da23ea9314b (diff) | |
| download | volute-e977059a478178101eda2e6771d52f21b135248c.zip | |
select compressor map
Diffstat (limited to 'widget.c')
| -rw-r--r-- | widget.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -396,3 +396,10 @@ w_clear_canvas(w_Canvas *canvas) { r_clear_canvas(canvas->id); canvas->dirty = 1; } + +/* Set the background image of the canvas. Returns non-zero on error. */ +int +w_canvas_set_bg(w_Canvas *canvas, const char *path) { + r_remove_canvas(canvas->id); + return w_init_canvas(canvas, path); +} |