From cd5f4822780e9ea431de180bdabd934baf9c052f Mon Sep 17 00:00:00 2001 From: celeron533 Date: Sat, 23 Feb 2019 22:55:48 +0800 Subject: [PATCH] Fix the flash animation in QRCodeSplashForm Mentioned in PR #2219 --- shadowsocks-csharp/View/QRCodeSplashForm.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shadowsocks-csharp/View/QRCodeSplashForm.cs b/shadowsocks-csharp/View/QRCodeSplashForm.cs index 50b4ccd4..a2d2357b 100755 --- a/shadowsocks-csharp/View/QRCodeSplashForm.cs +++ b/shadowsocks-csharp/View/QRCodeSplashForm.cs @@ -105,23 +105,23 @@ namespace Shadowsocks.View g.DrawRectangle(pen, x, y, w, h); SetBitmap(bitmap); } - else if (flashStep == 1) + else if (flashStep == 2) { g.Clear(Color.Transparent); SetBitmap(bitmap); } - else if (flashStep == 2) + else if (flashStep == 3) { g.FillRectangle(brush, x, y, w, h); g.DrawRectangle(pen, x, y, w, h); SetBitmap(bitmap); } - else if (flashStep == 3) + else if (flashStep == 4) { g.Clear(Color.Transparent); SetBitmap(bitmap); } - else if (flashStep == 4) + else if (flashStep == 5) { g.FillRectangle(brush, x, y, w, h); g.DrawRectangle(pen, x, y, w, h);