make compatible with sw rendering.
MODIFY
WalletWasabi.Fluent/Controls/Spectrum/SpectrumControl.cs
WalletWasabi.Fluent/Controls/Spectrum/SpectrumControl.cs
@@ -214,10 +214,22 @@ public class SpectrumControl : TemplatedControl, ICustomDrawOperation
}
if (_surface is null)
+ {
+ if (skia.GrContext is { })
{
_surface =
SKSurface.Create(skia.GrContext, false, new SKImageInfo((int)TextureWidth, (int)TextureHeight));
}
+ else
+ {
+ _surface = SKSurface.Create(
+ new SKImageInfo(
+ (int)Math.Ceiling(TextureWidth),
+ (int)Math.Ceiling(TextureHeight),
+ SKImageInfo.PlatformColorType,
+ SKAlphaType.Premul));
+ }
+ }
RenderBars(_surface.Canvas);

make compatible with sw rendering.