From a269b05ee56dcb0d8d8076e2f83d456bf6833008 Mon Sep 17 00:00:00 2001 From: sewn Date: Fri, 6 Dec 2024 09:09:27 +0300 Subject: [PATCH] splash: adjust update time --- splash/splash.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/splash/splash.go b/splash/splash.go index 096ea88..e9787b2 100644 --- a/splash/splash.go +++ b/splash/splash.go @@ -5,6 +5,7 @@ import ( "bytes" _ "embed" "errors" + "time" "image" _ "image/png" "io" @@ -205,7 +206,7 @@ func (ui *Splash) Run() error { } case app.FrameEvent: gtx := app.NewContext(&ops, e) - gtx.Execute(op.InvalidateCmd{}) + gtx.Execute(op.InvalidateCmd{At: gtx.Now.Add(time.Millisecond * 64)}) paint.Fill(gtx.Ops, ui.Theme.Palette.Bg) if !post {