mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-06 05:05:42 +13:00
Merge pull request #2886 from L1Q/master
Fix FPS indicator in windowed annotate
This commit is contained in:
commit
968958a432
1 changed files with 8 additions and 2 deletions
|
@ -803,9 +803,15 @@ private void CheckFPS()
|
|||
|
||||
private void DrawFPS(Graphics g, int offset)
|
||||
{
|
||||
Rectangle screenBounds = CaptureHelpers.GetActiveScreenBounds0Based();
|
||||
Point textPosition = new Point(offset, offset);
|
||||
|
||||
g.DrawTextWithShadow(FPS.ToString(), screenBounds.Location.Add(offset), infoFontBig, Brushes.White, Brushes.Black, new Point(0, 1));
|
||||
if (IsFullscreen)
|
||||
{
|
||||
Rectangle rectScreen = CaptureHelpers.GetActiveScreenBounds0Based();
|
||||
textPosition = textPosition.Add(rectScreen.Location);
|
||||
}
|
||||
|
||||
g.DrawTextWithShadow(FPS.ToString(), textPosition, infoFontBig, Brushes.White, Brushes.Black, new Point(0, 1));
|
||||
}
|
||||
|
||||
private void DrawInfoText(Graphics g, string text, Rectangle rect, Font font, int padding)
|
||||
|
|
Loading…
Reference in a new issue