Merge pull request #3649 from Fyers/master

Use current screen location for ImageViewer
This commit is contained in:
Jaex 2018-10-02 02:35:05 +03:00 committed by GitHub
commit 5d99c29018
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,12 +124,13 @@ private void InitializeComponent()
this.SuspendLayout();
this.BackColor = SystemColors.Window;
this.Bounds = CaptureHelpers.GetScreenBounds();
this.Bounds = CaptureHelpers.GetActiveScreenBounds();
this.DoubleBuffered = true;
this.FormBorderStyle = FormBorderStyle.None;
this.Text = "ShareX - Image viewer";
this.TopMost = true;
this.WindowState = FormWindowState.Maximized;
this.WindowState = FormWindowState.Normal;
this.StartPosition = FormStartPosition.Manual;
this.pbPreview.Cursor = Cursors.Hand;
this.pbPreview.Dock = System.Windows.Forms.DockStyle.Fill;