buggins / dlangui

Cross Platform GUI for D programming language
Boost Software License 1.0
805 stars 120 forks source link

Issues displaying gif images via ImageWidget and/or backgroundDrawable (DrawableRef) #682

Open Ferryry opened 5 months ago

Ferryry commented 5 months ago

I am facing an issue that dlangui is unable to load and display gif images. It happens either for ImageWidget or backgroundDrawable.

Example Code:

ImageWidget image = cast(ImageWidget) window.mainWidget.childById("gifimage");
image.drawable = drawableCache.get("gifimage");

Indeed, if I use another image with the file extension .jpg it works but not if I am using .gif. The background of its object remains blank.

GrimMaple commented 5 months ago

GIF isn't actually supported. And it doesn't seem to have been ever supported.

Supporting static GIF should be no-issue. However, supporting animating GIFs will be a pain to some extent. I wonder if dlangui should throw on unsupported files