diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-04-30 11:55:10 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-04-30 11:55:10 -0400 |
| commit | 2f425edd957b84d92961d78e8377f12db59cf068 (patch) | |
| tree | a199917ae609fdc7cd048a97020e02832a44b092 /ui.c | |
| parent | 48073692989863cef977c2eef6677d866e46fc0d (diff) | |
| download | volute-2f425edd957b84d92961d78e8377f12db59cf068.zip | |
add compressor canvas widget to ui
Diffstat (limited to 'ui.c')
| -rw-r--r-- | ui.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -92,7 +92,7 @@ void free_ui(UI *ui) { w_free_select_compressor(&ui->comp_select); free(ui->comps); - w_free_image(&ui->comp_img); + w_free_canvas(&ui->comp_img); } static void @@ -256,9 +256,8 @@ static int init_comp_img(UI *ui) { const Compressor *comp; - w_init_image(&ui->comp_img); comp = &ui->comps[ui->comp_select.idx]; - return w_set_image(&ui->comp_img, comp->imgfile); + return w_init_canvas(&ui->comp_img, comp->imgfile); } void |