Browse Source

Fixed FPS counter

feature/integer-clip-bak-1
Nikita Tsukanov 2 years ago
parent
commit
f2cc4fb2ea
  1. 2
      src/Avalonia.Base/Rendering/Composition/Server/DiagnosticTextRenderer.cs

2
src/Avalonia.Base/Rendering/Composition/Server/DiagnosticTextRenderer.cs

@ -67,7 +67,7 @@ namespace Avalonia.Rendering.Composition.Server
{ {
var effectiveChar = c is >= FirstChar and <= LastChar ? c : ' '; var effectiveChar = c is >= FirstChar and <= LastChar ? c : ' ';
var run = _runs[effectiveChar - FirstChar]; var run = _runs[effectiveChar - FirstChar];
context.Transform = originalTransform * Matrix.CreateTranslation(offset, 0.0); context.Transform = Matrix.CreateTranslation(offset, 0.0) * originalTransform;
context.DrawGlyphRun(foreground, run.PlatformImpl.Item); context.DrawGlyphRun(foreground, run.PlatformImpl.Item);
offset += run.Bounds.Width; offset += run.Bounds.Width;
} }

Loading…
Cancel
Save