From 07067652e6b9883b06227e469906cc245db5a3d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20COUDERC?= Date: Wed, 27 Mar 2019 18:58:54 +0100 Subject: [PATCH] =?UTF-8?q?Keep=20Moonlight/plymouth=20animation=20running?= =?UTF-8?q?=20so=20it=20doesn=E2=80=99t=20stop=20halfway=20when=20waiting?= =?UTF-8?q?=20for=20passphrase?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- moonlight-theme/plymouth/moonlight.script | 26 +++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/moonlight-theme/plymouth/moonlight.script b/moonlight-theme/plymouth/moonlight.script index 99efcf6..e534b9b 100644 --- a/moonlight-theme/plymouth/moonlight.script +++ b/moonlight-theme/plymouth/moonlight.script @@ -52,8 +52,8 @@ progress_time = 0; progress_pct = 0; # Variables for glow rotation animation -anim_start_time = NULL; -anim_status = "stopped"; +#anim_start_time = NULL; +#anim_status = "stopped"; refresh_iter = 0; anim_iter = 0; @@ -1042,13 +1042,13 @@ fun scale_glow_img(source_img, current_step, nb_steps) { } fun update_glow_anim () { - if (global.anim_start_time != global.progress_time && global.anim_status != "running") { - global.anim_start_time = global.progress_time; - global.anim_iter = 0; - global.anim_status = "running"; - } - - if (global.anim_status == "running") { +# if (global.anim_start_time != global.progress_time && global.anim_status != "running") { +# global.anim_start_time = global.progress_time; +# global.anim_iter = 0; +# global.anim_status = "running"; +# } +# +# if (global.anim_status == "running") { # iter_img = global.logo_glow[global.anim_iter]; # if (iter_img == NULL) { # # Generate scaled image for the glow behind the logo on demand. @@ -1076,13 +1076,13 @@ fun update_glow_anim () { global.anim_iter++; if (global.anim_iter >= NB_SCALE_STEPS) { - global.anim_status = "stopped"; + global.anim_iter = 0; } - } +# } } fun update_star_anim (star_sprite, speed) { - if (global.anim_status == "running") { +# if (global.anim_status == "running") { x = star_sprite.GetX(); newX = x - 30 * speed; @@ -1108,7 +1108,7 @@ fun update_star_anim (star_sprite, speed) { star_sprite.SetOpacity(newOp); - } +# } } #-----------------------------------------Refresh stuff --------------------------------