From c2b4e08f87c05514e4e5b9a59049e8698d7bcd7b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 5 Oct 2007 00:13:26 +0200 Subject: [PATCH] - more efficient way of block progress redraw - display 'infinite' progress --- Block.cs | 8 +------- Engine.cs | 1 + 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Block.cs b/Block.cs index 0b44a1d..722def2 100644 --- a/Block.cs +++ b/Block.cs @@ -442,17 +442,13 @@ namespace Eithne private void DrawClockProgress(Context c, float progress) { - // FIXME infinite progress not supported now - if(progress == -1) - return; - c.Save(); c.Color = new Color(0.5, 0.5, 1, 0.75); c.Translate(x + w/2, y + h/2); c.MoveTo(0, 0); if(progress == -1) { - progressTimer += 0.01f; + progressTimer += 0.2f; c.Arc(0, 0, 8, progressTimer, progressTimer + 1.5); } else @@ -462,8 +458,6 @@ namespace Eithne c.ClosePath(); c.Fill(); c.Restore(); - - schematic.QueueDraw(); } private void DrawState(Context c) diff --git a/Engine.cs b/Engine.cs index 9b396ab..6332330 100644 --- a/Engine.cs +++ b/Engine.cs @@ -193,6 +193,7 @@ namespace Eithne } progress(); + s.Redraw(); return true; } -- 2.11.4.GIT