mirror of
https://github.com/elementary/gala.git
synced 2024-11-25 03:06:14 +01:00
Canvas: discard bitmap on invalidate
This commit is contained in:
parent
18621b90ef
commit
b5b297e6b4
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user