From 2caeaf40e187fecca108911312a2c03521437111 Mon Sep 17 00:00:00 2001 From: Jarl Gullberg Date: Sun, 1 Oct 2017 20:14:39 +0200 Subject: [PATCH] Correct field naming. --- src/OpenTK.GLWidget/GLWidget.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/OpenTK.GLWidget/GLWidget.cs b/src/OpenTK.GLWidget/GLWidget.cs index dc59efa1..b72c512f 100644 --- a/src/OpenTK.GLWidget/GLWidget.cs +++ b/src/OpenTK.GLWidget/GLWidget.cs @@ -24,7 +24,7 @@ namespace OpenTK /// /// The previous frame time reported by GTK. /// - private double? PreviousFrameTime; + private double? _PreviousFrameTime; /// /// Gets the time taken to render the last frame (in seconds). @@ -94,17 +94,17 @@ namespace OpenTK { var frameTimeµSeconds = frameClock.FrameTime; - if (!PreviousFrameTime.HasValue) + if (!_PreviousFrameTime.HasValue) { - PreviousFrameTime = frameTimeµSeconds; + _PreviousFrameTime = frameTimeµSeconds; return true; } - var frameTimeSeconds = (frameTimeµSeconds - PreviousFrameTime) / 10e6; + var frameTimeSeconds = (frameTimeµSeconds - _PreviousFrameTime) / 10e6; DeltaTime = (float)frameTimeSeconds; - PreviousFrameTime = frameTimeµSeconds; + _PreviousFrameTime = frameTimeµSeconds; return true; }