Skip to content

Commit

Permalink
Add extra logging for bit depth
Browse files Browse the repository at this point in the history
  • Loading branch information
richiemcilroy committed Mar 20, 2024
1 parent 014cb2a commit 58a80bb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions apps/desktop/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,18 @@ fn main() {
let monitor: MonitorHandle = event_loop.primary_monitor().expect("No primary monitor found");
let video_modes: Vec<VideoMode> = monitor.video_modes().collect();

//print monitor
println!("Monitor: {:?}", monitor.name());
println!("Monitor size: {:?}", monitor.size());
println!("Monitor position: {:?}", monitor.position());
println!("Monitor scale factor: {:?}", monitor.scale_factor());

for mode in &video_modes {
println!("----------");
println!("Refresh rate: {:?}", mode.refresh_rate_millihertz());
println!("bit_depth: {:?}", mode.bit_depth());
println!("Video mode: {:?}", mode.size());
println!("----------");
}

let max_mode = video_modes.iter().max_by_key(|mode| mode.size().width * mode.size().height);
Expand Down

1 comment on commit 58a80bb

@vercel
Copy link

@vercel vercel bot commented on 58a80bb Mar 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.