Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions MapWizard.Desktop/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,27 @@ public static void Main(string[] args)

// Avalonia configuration, don't remove; also used by visual designer.
private static AppBuilder BuildAvaloniaApp(bool forceSoftwareRendering)
=> AppBuilder.Configure<App>()
{
var app = AppBuilder.Configure<App>()
.UsePlatformDetect()
.UseWayland()
.WithInterFont()
.With(new X11PlatformOptions()
{
RenderingMode = forceSoftwareRendering
? [X11RenderingMode.Software]
:
[
X11RenderingMode.Glx,
X11RenderingMode.Vulkan,
X11RenderingMode.Software
]
})
.LogToTrace();

if (OperatingSystem.IsLinux())
app.UseWayland()
.With(new X11PlatformOptions()
{
RenderingMode = forceSoftwareRendering
? [X11RenderingMode.Software]
:
[
X11RenderingMode.Glx,
X11RenderingMode.Vulkan,
X11RenderingMode.Software
]
});

return app;
}

}
1 change: 1 addition & 0 deletions MapWizard.Desktop/Views/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
xmlns:settings="clr-namespace:MapWizard.Desktop.Views.Settings"
x:Class="MapWizard.Desktop.Views.MainWindow"
x:DataType="vm:MainWindowViewModel"
WindowDecorations="BorderOnly"
IsMenuVisible="False"
MinWidth="800"
MinHeight="600"
Expand Down
Loading