X backend uses Close method instead of Destroy to free canvas

This commit is contained in:
Sasha Koshka 2024-06-03 20:54:45 -04:00
parent c51ce65c88
commit a01c2c9206

View File

@ -361,7 +361,7 @@ func (this *window) reallocateCanvas () {
if larger || smaller { if larger || smaller {
if this.xCanvas != nil { if this.xCanvas != nil {
this.xCanvas.Destroy() this.xCanvas.Close()
} }
this.xCanvas = xcanvas.NewCanvasFrom(xgraphics.New ( this.xCanvas = xcanvas.NewCanvasFrom(xgraphics.New (
this.backend.x, this.backend.x,