Canvas: discard bitmap on invalidate

This commit is contained in:
lenemter 2024-06-23 15:47:49 +09:00 committed by Corentin Noël
parent 18621b90ef
commit b5b297e6b4

View File

@ -69,7 +69,9 @@ public class Gala.Drawing.Canvas : GLib.Object, Clutter.Content {
}
public void invalidate () {
if (width <= 0 || height <= 0) {
bitmap = null;
if (width <= 0 || height <= 0) {
return;
}