Merge pull request #2886 from L1Q/master

Fix FPS indicator in windowed annotate
This commit is contained in:
Jaex 2017-10-28 15:50:44 +03:00 committed by GitHub
commit 968958a432
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)