浏览代码

fix rounding error on screens page.

Dan Walmsley 4 年之前
父节点
当前提交
3e690c5fbc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      samples/ControlCatalog/Pages/ScreenPage.cs

+ 1 - 1
samples/ControlCatalog/Pages/ScreenPage.cs

@@ -67,7 +67,7 @@ namespace ControlCatalog.Pages
                     context.DrawText(drawBrush, boundsRect.Position.WithY(boundsRect.Size.Height + 80), text);
                 }
 
-            context.DrawRectangle(p, new Rect(w.Position.X / 10f + Math.Abs(_leftMost), w.Position.Y / 10, w.Bounds.Width / 10, w.Bounds.Height / 10));
+            context.DrawRectangle(p, new Rect(w.Position.X / 10f + Math.Abs(_leftMost), w.Position.Y / 10f, w.Bounds.Width / 10, w.Bounds.Height / 10));
         }
     }
 }