using XFESystem.Desktop; using XFESystem.Platform; namespace XFESystem.NativeRuntime.Application; /// Keep the native splash visible while the CPU builds the first full desktop frame. internal sealed class BootFramebufferPresenter(IFramebufferPresenter scanout) : IFramebufferPresenter { private bool released; public int Width => scanout.Width; public int Height => scanout.Height; public void Present(ReadOnlySpan pixels, DesktopBounds damage) { if (!released) { NativePlatform.CompleteBoot(); released = true; } scanout.Present(pixels, damage); } }