diff --git a/Greenshot/Drawing/DrawableContainer.cs b/Greenshot/Drawing/DrawableContainer.cs
index b1d4be4c3..46f6753c1 100644
--- a/Greenshot/Drawing/DrawableContainer.cs
+++ b/Greenshot/Drawing/DrawableContainer.cs
@@ -739,6 +739,7 @@ namespace Greenshot.Drawing {
if (matrix == null) {
return;
}
+ SuspendLayout();
Point topLeft = new Point(Left, Top);
Point bottomRight = new Point(Left + Width, Top + Height);
Point[] points;
@@ -757,6 +758,7 @@ namespace Greenshot.Drawing {
if (TargetGripper != null) {
TargetGripper.Location = points[points.Length-1];
}
+ ResumeLayout();
}
protected virtual ScaleHelper.IDoubleProcessor GetAngleRoundProcessor() {
diff --git a/Greenshot/Drawing/StepLabelContainer.cs b/Greenshot/Drawing/StepLabelContainer.cs
index 676b1dd81..9df464a74 100644
--- a/Greenshot/Drawing/StepLabelContainer.cs
+++ b/Greenshot/Drawing/StepLabelContainer.cs
@@ -48,17 +48,21 @@ namespace Greenshot.Drawing {
InitContent();
}
+ public override Size DefaultSize {
+ get {
+ return new Size(30, 30);
+ }
+ }
+
public override bool InitContent() {
_defaultEditMode = EditStatus.IDLE;
_stringFormat.Alignment = StringAlignment.Center;
_stringFormat.LineAlignment = StringAlignment.Center;
// Set defaults
- Width = 30;
- Height = 30;
- using (FontFamily fam = new FontFamily(FontFamily.GenericSansSerif.Name)) {
- _font = new Font(fam, 12, FontStyle.Bold, GraphicsUnit.Pixel);
- }
+ Width = DefaultSize.Width;
+ Height = DefaultSize.Height;
+
return true;
}
@@ -113,8 +117,11 @@ namespace Greenshot.Drawing {
} else {
EllipseContainer.DrawEllipse(rect, graphics, rm, 0, Color.Transparent, fillColor, false);
}
-
- TextContainer.DrawText(graphics, rect, 0, lineColor, false, _stringFormat, text, _font);
+ using (FontFamily fam = new FontFamily(FontFamily.GenericSansSerif.Name)) {
+ float factor = (((float)Width / DefaultSize.Width) + ((float)Height / DefaultSize.Height)) / 2;
+ _font = new Font(fam, 16 * factor, FontStyle.Bold, GraphicsUnit.Pixel);
+ TextContainer.DrawText(graphics, rect, 0, lineColor, false, _stringFormat, text, _font);
+ }
}
public override bool ClickableAt(int x, int y) {
diff --git a/Greenshot/Drawing/Surface.cs b/Greenshot/Drawing/Surface.cs
index edb5c50ff..a3ae35ff1 100644
--- a/Greenshot/Drawing/Surface.cs
+++ b/Greenshot/Drawing/Surface.cs
@@ -18,26 +18,27 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
+
+using Greenshot.Configuration;
+using Greenshot.Core;
+using Greenshot.Drawing.Fields;
+using Greenshot.Helpers;
+using Greenshot.IniFile;
+using Greenshot.Memento;
+using Greenshot.Plugin;
+using Greenshot.Plugin.Drawing;
+using GreenshotPlugin.Controls;
+using GreenshotPlugin.Core;
+using log4net;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
+using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using System.Windows.Forms;
-using Greenshot.Configuration;
-using Greenshot.Drawing.Fields;
-using Greenshot.Helpers;
-using Greenshot.Plugin;
-using Greenshot.Plugin.Drawing;
-using GreenshotPlugin.Core;
-using Greenshot.Memento;
-using Greenshot.IniFile;
-using GreenshotPlugin.Controls;
-using Greenshot.Core;
-using log4net;
-using System.Drawing.Drawing2D;
namespace Greenshot.Drawing {
diff --git a/Greenshot/Forms/ImageEditorForm.cs b/Greenshot/Forms/ImageEditorForm.cs
index b2b106f5b..79bd460a0 100644
--- a/Greenshot/Forms/ImageEditorForm.cs
+++ b/Greenshot/Forms/ImageEditorForm.cs
@@ -18,30 +18,29 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Diagnostics;
-using System.Drawing;
-using System.Drawing.Drawing2D;
-using System.IO;
-using System.Windows.Forms;
using Greenshot.Configuration;
+using Greenshot.Core;
using Greenshot.Destinations;
using Greenshot.Drawing;
using Greenshot.Drawing.Fields;
using Greenshot.Drawing.Fields.Binding;
+using Greenshot.Forms;
using Greenshot.Help;
using Greenshot.Helpers;
+using Greenshot.IniFile;
using Greenshot.Plugin;
using GreenshotPlugin.Controls;
using GreenshotPlugin.Core;
-using Greenshot.IniFile;
-using System.Threading;
-using Greenshot.Core;
using log4net;
-using Greenshot.Forms;
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.IO;
+using System.Threading;
+using System.Windows.Forms;
namespace Greenshot {
///