Browse Source

fix rounding error on screens page.

pull/5433/head
Dan Walmsley 5 years ago
parent
commit
3e690c5fbc
  1. 2
      samples/ControlCatalog/Pages/ScreenPage.cs

2
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));
}
}
}

Loading…
Cancel
Save