Skip to content

Commit

Permalink
Remove rect invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
webprofusion-chrisc committed Dec 23, 2022
1 parent 4c1edb4 commit fccdb70
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ public override void Render(DrawingContext context)
}

context.Custom(_customDrawingOp);

//Dispatcher.UIThread.InvokeAsync(InvalidateVisual, DispatcherPriority.Background);

var diagramWidth = _diagramRenderer.GetRequiredWidthPerChord() * _diagramRenderer.ChordsPerRow;
if (this.Width != diagramWidth) this.Width = diagramWidth;
if (this.Height != 500) this.Height = 500;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,6 @@ public override void Render(DrawingContext context)
_diagramRenderer.SetGuitarModel(ViewModels.MainViewModel.GuitarModel);

context.Custom(_customDrawingOp);

//Dispatcher.UIThread.InvokeAsync(InvalidateVisual, DispatcherPriority.Background);

var diagramWidth = _diagramRenderer.GetDiagramWidth() * 4;
var diagramHeight = _diagramRenderer.GetFretboardHeight() * 2;
if (this.Width != diagramWidth) this.Width = diagramWidth;
if (this.Height != diagramWidth) this.Height = diagramHeight;

}
}
}

0 comments on commit fccdb70

Please sign in to comment.