From eca39344cd9d2a37fb52ef1c5f4fe3c11f6525cb Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 1 Nov 2026 22:02:52 +0100 Subject: v4.3.1: render Windows through wgpu and keep the installer window open Windows 10 1809 sessions with only the Microsoft display driver expose OpenGL 1.1, which egui_glow refuses. The Windows build now uses wgpu on Direct3D 12 and its adapter selector accepts WARP, the software rasterizer, after every hardware class, so a VM or Remote Desktop session still starts. Linux keeps the smaller glow renderer. The GUI is a windows-subsystem binary now, so launching it from the Start menu does not flash a console; startup failures and --help go to a native message box. The PowerShell installer pauses before closing unless -NoPause is passed. --- gui/Cargo.toml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'gui/Cargo.toml') diff --git a/gui/Cargo.toml b/gui/Cargo.toml index 8bcbda0..24bf560 100644 --- a/gui/Cargo.toml +++ b/gui/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zagan-bet-gui" -version = "4.3.0" +version = "4.3.1" edition = "2024" license = "GPL-3.0-or-later" description = "Desktop frontend for zagan-bet" @@ -12,12 +12,19 @@ path = "src/main.rs" [dependencies] # No default features: the GUI never links the server's native-tls. zagan-bet = { path = "..", default-features = false } -# glow (OpenGL) rather than wgpu: no Vulkan runtime, and it cross-compiles to -# Windows with the mingw toolchain. Fonts are embedded, so no default_fonts. +rusqlite = { version = "0.29", features = ["bundled"] } +sha2 = "0.10" + +# Linux uses glow (OpenGL): small, and every desktop has a usable driver. +# Windows uses wgpu on Direct3D 12, which also has the WARP software adapter on +# machines with no OpenGL driver (Windows 10 1809 over Remote Desktop, VMs). +[target.'cfg(windows)'.dependencies] +eframe = { version = "0.37", default-features = false, features = ["wgpu"] } +windows-sys = { version = "0.59", features = ["Win32_UI_WindowsAndMessaging"] } + +[target.'cfg(not(windows))'.dependencies] eframe = { version = "0.37", default-features = false, features = [ "glow", "wayland", "x11", ] } -rusqlite = { version = "0.29", features = ["bundled"] } -sha2 = "0.10" -- cgit v1.2.3