AllenDang / giu

Cross platform rapid GUI framework for golang based on Dear ImGui.
MIT License
2.28k stars 133 forks source link

ImageWithRgba displayed image does not change when the supplied image.Image parameter changes #710

Closed araoko closed 9 months ago

araoko commented 12 months ago

unlike the ImageWithFile method, when ImageWithRgba is called with a different image.Image parameter does not change the image displayed if the parameter changes when in the event loop, the image is not replaced. if the size is changed, the old image will just be resized but it will not be replaced by the new image. ImageWithFile on the other hand appears to be re-evaluated every time in the event loop as the image changes

gucio321 commented 12 months ago

@araoko does this fix the issue? https://github.com/AllenDang/giu/pull/713

araoko commented 9 months ago

@araoko does this fix the issue? #713

I dont have the updates. I did a go get -u ./... and still have the old code

gucio321 commented 9 months ago

Go get -u giupath@latestcommithash