Revert "BUG-1735 fixed exception when scaling down screenshot with text element"

This reverts commit cc65001d34.
This commit is contained in:
JKlingen 2015-01-25 14:51:50 +01:00
commit 228dd301ba
23 changed files with 279 additions and 722 deletions

View file

@ -86,8 +86,6 @@ namespace Greenshot.Drawing {
}
using (Pen pen = new Pen(lineColor, lineThickness)) {
SetArrowHeads(heads, pen);
graphics.Flush(FlushIntention.Sync);
graphics.SmoothingMode = SmoothingMode.None;
graphics.DrawLine(pen, Left, Top, Left + Width, Top + Height);
}
}

View file

@ -92,8 +92,6 @@ namespace Greenshot.Drawing {
}
using (Pen pen = new Pen(lineColor, lineThickness)) {
graphics.Flush(FlushIntention.Flush);
graphics.SmoothingMode = SmoothingMode.None;
graphics.DrawLine(pen, Left, Top, Left + Width, Top + Height);
}
}

View file

@ -247,7 +247,7 @@ namespace Greenshot.Drawing {
rect = GuiRectangle.GetGuiRectangle(Left, Top, Width, Height);
int pixelsAfter = rect.Width * rect.Height;
float factor = pixelsAfter / (float)pixelsBefore;
float factor = pixelsAfter / pixelsBefore;
float fontSize = GetFieldValueAsFloat(FieldType.FONT_SIZE);
fontSize *= factor;