Fix Windows DXGI compilation errors and bump version to v0.2.1

This commit is contained in:
katR 2026-09-06 06:52:56 +05:30
parent 8751e49727
commit 1e8f440acb
6 changed files with 15 additions and 10 deletions

View file

@ -181,17 +181,19 @@ jobs:
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name != 'main' && github.ref_name || 'v0.2.0' }}
name: "Scythe ${{ github.ref_name != 'main' && github.ref_name || 'v0.2.0' }}"
tag_name: ${{ github.ref_name != 'main' && github.ref_name || 'v0.2.1' }}
name: "Scythe ${{ github.ref_name != 'main' && github.ref_name || 'v0.2.1' }}"
body: |
High-performance GPU hardware screen recorder and instant replay overlay for Linux and Windows.
### What's New in v0.2.0
### What's New in v0.2.1
- **Windows Setup Installer (`scythe-setup.exe`)**: Fixed DXGI adapter initialization and DirectX 11 hardware capture pipeline on Windows. Full Windows NSIS installer with desktop/start menu integration.
- **System Autostart Options**: Toggle automatic startup on system login for both the overlay HUD and background replay buffer.
- **Clean Sequential Trimmer Exports**: Cleaned export naming to `clip_trimmed.mp4`, `clip_trimmed_1.mp4` avoiding repetitive suffixes.
- **Settings UI Organization**: Dedicated grouped sections for System & Startup, Storage & File Naming with real-time pattern preview, and hotkey defaults reset.
- **Auto-Update System**: Integrated background release checker with voluntary update notifications in the HUD and dedicated settings manager.
- **Standardized Datetime Filenames**: Clips and replays now save with clear human-readable timestamps (`Replay-HH-MM-SS-DD-MM-YYYY.mp4` / `Recording-HH-MM-SS-DD-MM-YYYY.mp4`).
- **Standardized Datetime Filenames**: Clips and replays now save with clear human-readable timestamps (`Replay-HH-MM-SS_DD-MM-YYYY.mp4` / `Recording-HH-MM-SS_DD-MM-YYYY.mp4`).
- **NVIDIA ShadowPlay Toast Overlay**: Sleek, non-intrusive floating toast notifications in the top-right corner for Replay Saved, Recording Started/Stopped, and Mouse Cursor toggle.
- **Obsidian Dark UI Refinement**: Pure pitch-black obsidian theme with smooth accent borders, squared geometry, and zero focus-stealing.
- **Interactive Keybind & Settings Manager**: Real-time hotkey listener, custom FPS input, replay buffer duration, and bitrate adjustment.
### Packages
- Windows: `scythe-setup.exe` (Official installer with Start Menu & Desktop shortcuts)

2
Cargo.lock generated
View file

@ -3700,7 +3700,7 @@ dependencies = [
[[package]]
name = "scythe"
version = "0.2.0"
version = "0.2.1"
dependencies = [
"ashpd",
"cpal",

View file

@ -1,6 +1,6 @@
[package]
name = "scythe"
version = "0.2.0"
version = "0.2.1"
edition = "2024"
[[bin]]

View file

@ -107,6 +107,7 @@ pub fn list_input_devices() -> Vec<String> {
}
pub fn list_application_audio() -> Vec<String> {
#[allow(unused_mut)]
let mut apps = Vec::new();
#[cfg(unix)]
{

View file

@ -61,8 +61,10 @@ impl WindowsCapture {
let mut context: Option<ID3D11DeviceContext> = None;
let mut feature_level = D3D_FEATURE_LEVEL_11_0;
let adapter_base = adapter.cast::<IDXGIAdapter>()?;
D3D11CreateDevice(
Some(&adapter),
Some(&adapter_base),
D3D_DRIVER_TYPE_UNKNOWN,
HMODULE(std::ptr::null_mut()),
D3D11_CREATE_DEVICE_BGRA_SUPPORT,

View file

@ -535,7 +535,7 @@ impl WindowsHwEncoder {
}
}
#[cfg(target_os = "windows")]
Frame::D3D11Texture { handle: _ } => {
Frame::D3D11Texture { handle: _, .. } => {
// Zero-copy D3D11 frame submission
(*self.sw_frame).pts = pts;