Procházet zdrojové kódy

fix timespan in render demo.

Dan Walmsley před 5 roky
rodič
revize
11d0ca56de

+ 1 - 1
samples/RenderDemo/Controls/LineBoundsDemoControl.cs

@@ -17,7 +17,7 @@ namespace RenderDemo.Controls
         public LineBoundsDemoControl()
         {
             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.Start();
         }