Skip to content
Snippets Groups Projects
Commit 1dbc79ca authored by Paul-Winpenny's avatar Paul-Winpenny
Browse files

Update CentreGraph.xaml.cs

parent 7e7187c1
No related branches found
No related tags found
No related merge requests found
......@@ -61,6 +61,10 @@ namespace RobobinApp.Views
private void DrawLocation(ICanvas canvas, float scale, float offsetX, float offsetY)
{
if (_location.Item1 == 0 && _location.Item2 == 0)
{
return;
}
Debug.WriteLine($"Drawing Location {_location.Item1} {_location.Item2}");
float scaledX = _location.Item1 * scale + offsetX;
float flippedY = storedDirtyRect.Height - (_location.Item2 * scale + offsetY);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment