From d6bfb0c5a0a5251589d149e90a2dc760e4eb907c Mon Sep 17 00:00:00 2001 From: CreepyCrafter24 <33260128+CreepyCrafter24@users.noreply.github.com> Date: Sun, 10 Nov 2019 00:31:53 +0100 Subject: [PATCH] More clarity --- CC-Clicker 2.0/OvPForm.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CC-Clicker 2.0/OvPForm.cs b/CC-Clicker 2.0/OvPForm.cs index 5aa4650..5083773 100644 --- a/CC-Clicker 2.0/OvPForm.cs +++ b/CC-Clicker 2.0/OvPForm.cs @@ -18,12 +18,12 @@ namespace CC_Clicker_2._0 InitializeComponent(); setPos(x, y); } - public void setPos(int x, int y) => Location = new Point(x - Width / 2, y - Height / 2); + public void setPos(int x, int y) => Location = new Point(x - (Width / 2), y - (Height / 2)); private void OvPForm_Paint(object sender, PaintEventArgs e) { - e.Graphics.DrawLine(new Pen(Color.Black, 2), Width / 2 - 15, Height / 2, Width / 2 + 15, Height / 2); - e.Graphics.DrawLine(new Pen(Color.Black, 2), Width / 2, Height / 2 - 15, Width / 2, Height / 2 + 15); + e.Graphics.DrawLine(new Pen(Color.Black, 2), (Width / 2) - 15, Height / 2, (Width / 2) + 15, Height / 2); + e.Graphics.DrawLine(new Pen(Color.Black, 2), Width / 2, (Height / 2) - 15, Width / 2, (Height / 2) + 15); } static readonly IntPtr HWND_TOPMOST = new IntPtr(-1);