|
|
@ -38,11 +38,11 @@ namespace Avalonia.LinuxFramebuffer |
|
|
if (_fb is IGlOutputBackend gl) |
|
|
if (_fb is IGlOutputBackend gl) |
|
|
AvaloniaLocator.CurrentMutable.Bind<IPlatformOpenGlInterface>().ToConstant(gl.PlatformOpenGlInterface); |
|
|
AvaloniaLocator.CurrentMutable.Bind<IPlatformOpenGlInterface>().ToConstant(gl.PlatformOpenGlInterface); |
|
|
|
|
|
|
|
|
var opts = AvaloniaLocator.Current.GetService<LinuxFramebufferPlatformOptions>(); |
|
|
var opts = AvaloniaLocator.Current.GetService<LinuxFramebufferPlatformOptions>() ?? new LinuxFramebufferPlatformOptions(); |
|
|
|
|
|
|
|
|
AvaloniaLocator.CurrentMutable |
|
|
AvaloniaLocator.CurrentMutable |
|
|
.Bind<IPlatformThreadingInterface>().ToConstant(Threading) |
|
|
.Bind<IPlatformThreadingInterface>().ToConstant(Threading) |
|
|
.Bind<IRenderTimer>().ToConstant(new DefaultRenderTimer(opts?.Fps ?? 60)) |
|
|
.Bind<IRenderTimer>().ToConstant(new DefaultRenderTimer(opts.Fps)) |
|
|
.Bind<IRenderLoop>().ToConstant(new RenderLoop()) |
|
|
.Bind<IRenderLoop>().ToConstant(new RenderLoop()) |
|
|
.Bind<ICursorFactory>().ToTransient<CursorFactoryStub>() |
|
|
.Bind<ICursorFactory>().ToTransient<CursorFactoryStub>() |
|
|
.Bind<IKeyboardDevice>().ToConstant(new KeyboardDevice()) |
|
|
.Bind<IKeyboardDevice>().ToConstant(new KeyboardDevice()) |
|
|
|