From 18886965673e3f9d5faec0bafd09f68be2d9db45 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Wed, 10 Apr 2024 08:53:35 +0400 Subject: Reimplement window closing anim in an efficient way - Keep a root surface cache to be accessible in surface destroyed() - Only snapshot during / right before closing, rather than every frame - Store textures rather than elements to handle scale and alpha properly --- src/layout/closing_window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/layout/closing_window.rs') diff --git a/src/layout/closing_window.rs b/src/layout/closing_window.rs index ec565ebf..3de0d51f 100644 --- a/src/layout/closing_window.rs +++ b/src/layout/closing_window.rs @@ -59,7 +59,7 @@ impl ClosingWindow { #[allow(clippy::too_many_arguments)] pub fn new>( renderer: &mut GlesRenderer, - snapshot: RenderSnapshot, + snapshot: RenderSnapshot, scale: i32, center: Point, pos: Point, -- cgit