Browse Source

Update WriteableBitmapImpl.cs

pull/9898/head
Simon Cropp 4 years ago
parent
commit
1396c5aac7
  1. 2
      src/Skia/Avalonia.Skia/WriteableBitmapImpl.cs

2
src/Skia/Avalonia.Skia/WriteableBitmapImpl.cs

@ -97,7 +97,7 @@ namespace Avalonia.Skia
SKColorType colorType = format.ToSkColorType();
SKAlphaType alphaType = alphaFormat.ToSkAlphaType();
var runtimePlatform = AvaloniaLocator.Current.GetRequiredService<IRuntimePlatform>();
var runtimePlatform = AvaloniaLocator.Current.GetService<IRuntimePlatform>();
if (runtimePlatform != null)
{

Loading…
Cancel
Save