|
|
|
@ -90,7 +90,8 @@ namespace Avalonia.Skia |
|
|
|
|
|
|
|
_currentFramebufferAddress = framebuffer.Address; |
|
|
|
|
|
|
|
var surface = SKSurface.Create(desiredImageInfo, _currentFramebufferAddress, framebuffer.RowBytes); |
|
|
|
var surface = SKSurface.Create(desiredImageInfo, _currentFramebufferAddress, |
|
|
|
framebuffer.RowBytes, new SKSurfaceProperties(SKPixelGeometry.RgbHorizontal)); |
|
|
|
|
|
|
|
// If surface cannot be created - try to create a compatibility shim first
|
|
|
|
if (surface == null) |
|
|
|
@ -148,7 +149,7 @@ namespace Avalonia.Skia |
|
|
|
$"Unable to create pixel format shim for conversion from {bitmapColorType} to {destinationInfo.ColorType}"); |
|
|
|
} |
|
|
|
|
|
|
|
Surface = SKSurface.Create(_bitmap.Info, _bitmap.GetPixels(), _bitmap.RowBytes); |
|
|
|
Surface = SKSurface.Create(_bitmap.Info, _bitmap.GetPixels(), _bitmap.RowBytes, new SKSurfaceProperties(SKPixelGeometry.RgbHorizontal)); |
|
|
|
|
|
|
|
if (Surface == null) |
|
|
|
{ |
|
|
|
|