Revert "commented outdated implementations of ClickableAt(int, int) and Contains(int, int)"

This reverts commit 86d99a5a0d.
The commit caused the TextContainer not to be normally selectable.
This commit is contained in:
RKrom 2014-11-04 11:55:20 +01:00
commit 9a6a3e6a90
2 changed files with 4 additions and 4 deletions

View file

@ -215,7 +215,7 @@ namespace Greenshot.Drawing {
DrawText(graphics, rect, lineThickness, lineColor, false, StringFormat, Text, Font);
}
/*public override bool Contains(int x, int y) {
public override bool Contains(int x, int y) {
double xDistanceFromCenter = x - (Left + Width / 2);
double yDistanceFromCenter = y - (Top + Height / 2);
// ellipse: x^2/a^2 + y^2/b^2 = 1
@ -246,6 +246,6 @@ namespace Greenshot.Drawing {
} else {
return false;
}
}*/
}
}
}

View file

@ -404,10 +404,10 @@ namespace Greenshot.Drawing {
}
}
/*public override bool ClickableAt(int x, int y) {
public override bool ClickableAt(int x, int y) {
Rectangle r = GuiRectangle.GetGuiRectangle(Left, Top, Width, Height);
r.Inflate(5, 5);
return r.Contains(x, y);
}*/
}
}
}