You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
Bitmap: regenerate GdkTexture when Canvas was used on the Bitmap
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user