Browse Source

Fix the flash animation in QRCodeSplashForm

Mentioned in PR #2219
tags/4.1.5
celeron533 5 years ago
parent
commit
cd5f482278
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      shadowsocks-csharp/View/QRCodeSplashForm.cs

+ 4
- 4
shadowsocks-csharp/View/QRCodeSplashForm.cs View File

@@ -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);


Loading…
Cancel
Save