Browse Source

Cairo surface format seems to be always Rgba8888 for some reason

pull/875/head
Nikita Tsukanov 9 years ago
parent
commit
7ad30a564c
  1. 12
      src/Gtk/Avalonia.Gtk3/ImageSurfaceFramebuffer.cs

12
src/Gtk/Avalonia.Gtk3/ImageSurfaceFramebuffer.cs

@ -54,16 +54,8 @@ namespace Avalonia.Gtk3
//TODO: Proper DPI detect
public Size Dpi => new Size(96, 96);
public PixelFormat Format
{
get
{
if (AvaloniaLocator.Current.GetService<IRuntimePlatform>().GetRuntimeInfo().OperatingSystem ==
OperatingSystemType.WinNT)
return PixelFormat.Bgra8888;
return PixelFormat.Rgba8888;
}
}
public PixelFormat Format => PixelFormat.Bgra8888;
}
}

Loading…
Cancel
Save