Skip to content

Commit

Permalink
chore: add shape to cache control
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelMendesRosa committed Aug 30, 2023
1 parent ff48082 commit 51dd37d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private void OnSurfacePainted(object? sender, SKPaintSurfaceEventArgs e)
using var _ = canvas.SnapshotState();

var key =
FormattableString.Invariant($"[{contentAsFE.ActualWidth}x{contentAsFE.ActualHeight},{background}]: ") +
FormattableString.Invariant($"[{contentAsFE.ActualWidth}x{contentAsFE.ActualHeight},{background},{shape}]: ") +
string.Join("; ", state.Shadows.Select(x => x.ToKey()));
if (Cache.TryGetValue(key, out var snapshot))
{
Expand Down

0 comments on commit 51dd37d

Please sign in to comment.