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
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
name = "voxl-server"
version = "0.3.5"
edition = "2021"
# The Rust that CI's Linux job builds with (nixpkgs 25.05), so clippy flags anything newer
# on every platform.
rust-version = "1.86"
license = "MIT"
description = "Low-latency desktop streaming for the browser: an X11 display, a Mac's screen or a Windows desktop as H.264 over a WebSocket"
repository = "https://github.com/tembo/voxl"
Expand Down
4 changes: 2 additions & 2 deletions src/win/screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ impl Screen {
|| m.dmDisplayFrequency != cur.dmDisplayFrequency
|| s.0 < MIN.0
|| s.1 < MIN.1
|| !s.0.is_multiple_of(2)
|| !s.1.is_multiple_of(2)
|| s.0 % 2 != 0
|| s.1 % 2 != 0
|| (s.0 as u64 * s.1 as u64 > MAX_PIXELS && s != size(&cur))
|| modes.iter().any(|x| size(x) == s)
{
Expand Down
Loading