mirror of
https://github.com/FluxaMedia/fluxa-desktop.git
synced 2026-08-09 08:27:30 +00:00
- windows_d3d11.rs / windows_player_surface.rs: detect whether the active display supports HDR and, when the "HDR output" preference is on, create the D3D11 swap chain with an HDR-capable format; expose hdr_display_supported() for the frontend to query. - mpv_render.rs: drop the now-redundant format/width/height fields from the D3D11 render target — mpv_d3d11_fbo only needs the texture, which already carries its own format/dimensions. - linux_player_surface.rs: track whether the current Vulkan context is HDR-capable on a shared flag for parity with the Windows path. - storage.rs: add read_pref_bool() to read boolean prefs (used for the hdrEnabled toggle). - lib.rs: register the player_hdr_supported command; tauri.conf.json sets a transparent window background so HDR/SDR compositing doesn't show a black flash. - Frontend: add an "HDR output" toggle in Playback settings, auto-detect and store display support on first run via player_hdr_supported. |
||
|---|---|---|
| .. | ||
| assets | ||
| capabilities | ||
| examples | ||
| icons | ||
| patches/tauri-runtime-wry-2.11.2 | ||
| plugins/tauri-plugin-libmpv | ||
| src | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| fetch-libmpv.sh | ||
| tauri.conf.json | ||