diff --git a/ShareX.ScreenCaptureLib/Shapes/ShapeManagerMenu.cs b/ShareX.ScreenCaptureLib/Shapes/ShapeManagerMenu.cs index 327275776..1df8dec36 100644 --- a/ShareX.ScreenCaptureLib/Shapes/ShapeManagerMenu.cs +++ b/ShareX.ScreenCaptureLib/Shapes/ShapeManagerMenu.cs @@ -100,19 +100,6 @@ internal void CreateToolbar() tsMain.SuspendLayout(); - // https://www.medo64.com/2014/01/scaling-toolstrip-with-dpi/ - using (Graphics g = menuForm.CreateGraphics()) - { - double scale = Math.Max(g.DpiX, g.DpiY) / 96.0; - double newScale = ((int)Math.Floor(scale * 100) / 25 * 25) / 100.0; - if (newScale > 1) - { - int newWidth = (int)(tsMain.ImageScalingSize.Width * newScale); - int newHeight = (int)(tsMain.ImageScalingSize.Height * newScale); - tsMain.ImageScalingSize = new Size(newWidth, newHeight); - } - } - menuForm.Controls.Add(tsMain); if (Form.IsFullscreen) diff --git a/ShareX/Forms/ActionsToolbarForm.cs b/ShareX/Forms/ActionsToolbarForm.cs index cc9f06a9b..deab3c559 100644 --- a/ShareX/Forms/ActionsToolbarForm.cs +++ b/ShareX/Forms/ActionsToolbarForm.cs @@ -101,19 +101,6 @@ private void InitializeComponent() ShowItemToolTips = false }; - // https://www.medo64.com/2014/01/scaling-toolstrip-with-dpi/ - using (Graphics g = CreateGraphics()) - { - double scale = Math.Max(g.DpiX, g.DpiY) / 96.0; - double newScale = ((int)Math.Floor(scale * 100) / 25 * 25) / 100.0; - if (newScale > 1) - { - int newWidth = (int)(tsMain.ImageScalingSize.Width * newScale); - int newHeight = (int)(tsMain.ImageScalingSize.Height * newScale); - tsMain.ImageScalingSize = new Size(newWidth, newHeight); - } - } - tsMain.MouseLeave += tsMain_MouseLeave; Controls.Add(tsMain);