Browse Source

fix timespan in render demo.

pull/3945/head
Dan Walmsley 6 years ago
parent
commit
11d0ca56de
  1. 2
      samples/RenderDemo/Controls/LineBoundsDemoControl.cs

2
samples/RenderDemo/Controls/LineBoundsDemoControl.cs

@ -17,7 +17,7 @@ namespace RenderDemo.Controls
public LineBoundsDemoControl() public LineBoundsDemoControl()
{ {
var timer = new DispatcherTimer(); var timer = new DispatcherTimer();
timer.Interval = TimeSpan.FromSeconds(1 / 60); timer.Interval = TimeSpan.FromSeconds(1 / 60.0);
timer.Tick += (sender, e) => Angle += Math.PI / 360; timer.Tick += (sender, e) => Angle += Math.PI / 360;
timer.Start(); timer.Start();
} }

Loading…
Cancel
Save