Browse Source

Fix wrong splash on multi display (#1729)

Because the splash is already on the target display, the target rect doesn't need to calculate with the screen position.
tags/4.0.10
wzxjohn Allen Zhu 6 years ago
parent
commit
226ad0cf50
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      shadowsocks-csharp/View/MenuViewController.cs

+ 1
- 1
shadowsocks-csharp/View/MenuViewController.cs View File

@@ -738,7 +738,7 @@ namespace Shadowsocks.View
splash.Location = new Point(screen.Bounds.X, screen.Bounds.Y);
// we need a panel because a window has a minimal size
// TODO: test on high DPI
splash.TargetRect = new Rectangle((int)minX + screen.Bounds.X, (int)minY + screen.Bounds.Y, (int)maxX - (int)minX, (int)maxY - (int)minY);
splash.TargetRect = new Rectangle((int)minX, (int)minY, (int)maxX - (int)minX, (int)maxY - (int)minY);
splash.Size = new Size(fullImage.Width, fullImage.Height);
splash.Show();
return;


Loading…
Cancel
Save