mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
Revert "BUG-1735 fixed exception when scaling down screenshot with text element"
This reverts commit cc65001d34
.
This commit is contained in:
parent
5b0ae0a117
commit
228dd301ba
23 changed files with 279 additions and 722 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue