bgdraw

X11 background animator
git clone https://git.sinitax.com/sinitax/bgdraw
Log | Files | Refs | LICENSE | sfeed.txt

commit d40bb519ef34f20b30762cf5d32f0078b960c706
parent 263fdaa4366782d38c7546b97f79bd76419913f8
Author: Louis Burda <quent.burda@gmail.com>
Date:   Tue,  1 Nov 2022 16:29:38 +0100

Fix default width and height assignment for gif

Diffstat:
Mbgdraw.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/bgdraw.c b/bgdraw.c @@ -261,6 +261,11 @@ load_img(struct image *img) if (!frames || !img->framecnt) errx(1, "IMG %s: Failed to load gif image", img->name); + if (!img->w || !img->h) { + img->w = width; + img->h = height; + } + img->frames = malloc(sizeof(XImage*) * img->framecnt); if (!img->frames) err(1, "malloc");