mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Small cleanups [skip ci]
This commit is contained in:
parent
02a06a12b0
commit
98e6be5eb6
171 changed files with 1607 additions and 1769 deletions
|
@ -118,7 +118,7 @@ namespace Greenshot.Drawing {
|
|||
/// This makes it possible for the label to be placed exactly in the middle of the pointer.
|
||||
/// </summary>
|
||||
public override bool HandleMouseDown(int mouseX, int mouseY) {
|
||||
return base.HandleMouseDown(mouseX - (Width / 2), mouseY - (Height / 2));
|
||||
return base.HandleMouseDown(mouseX - Width / 2, mouseY - Height / 2);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -146,8 +146,8 @@ namespace Greenshot.Drawing {
|
|||
|
||||
public override bool HandleMouseMove(int x, int y) {
|
||||
Invalidate();
|
||||
Left = x - (Width / 2);
|
||||
Top = y - (Height / 2);
|
||||
Left = x - Width / 2;
|
||||
Top = y - Height / 2;
|
||||
Invalidate();
|
||||
return true;
|
||||
}
|
||||
|
@ -167,7 +167,7 @@ namespace Greenshot.Drawing {
|
|||
|
||||
int widthAfter = rect.Width;
|
||||
int heightAfter = rect.Height;
|
||||
float factor = (((float)widthAfter / widthBefore) + ((float)heightAfter / heightBefore)) / 2;
|
||||
float factor = ((float)widthAfter / widthBefore + (float)heightAfter / heightBefore) / 2;
|
||||
|
||||
fontSize *= factor;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue