Bitmap: regenerate GdkTexture when Canvas was used on the Bitmap

This commit is contained in:
Julian Winkler
2024-06-15 00:04:23 +02:00
parent 2a10196bc5
commit b81f53e4b2
4 changed files with 27 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ public class Canvas {
public Canvas() {}
public Canvas(Bitmap bmp) {
bmp.destroyTexture(); // invalidate cached texture
this.skia_canvas = native_canvas_from_bitmap(bmp.pixbuf);
this.widget = 0;
}