diff --git a/spine-monogame/example/ExampleGame.cs b/spine-monogame/example/ExampleGame.cs index 3c5e9ee0c..27e537a59 100644 --- a/spine-monogame/example/ExampleGame.cs +++ b/spine-monogame/example/ExampleGame.cs @@ -294,7 +294,7 @@ namespace Spine { } protected override void Draw(GameTime gameTime) { - currentScreen.Render(gameTime.ElapsedGameTime.Milliseconds / 1000.0f); + currentScreen.Render((float)(gameTime.ElapsedGameTime.TotalMilliseconds / 1000.0)); } } } diff --git a/spine-xna/example/src/ExampleGame.cs b/spine-xna/example/src/ExampleGame.cs index 9c42ed311..e2c8bd8e7 100644 --- a/spine-xna/example/src/ExampleGame.cs +++ b/spine-xna/example/src/ExampleGame.cs @@ -192,7 +192,7 @@ namespace Spine { protected override void Draw (GameTime gameTime) { GraphicsDevice.Clear(Color.Black); - state.Update(gameTime.ElapsedGameTime.Milliseconds / 1000f); + state.Update((float)(gameTime.ElapsedGameTime.TotalMilliseconds / 1000.0)); state.Apply(skeleton); skeleton.UpdateWorldTransform(); if (skeletonRenderer.Effect is BasicEffect) {