From 58a80bbbd432c0e09a8265a1ac1bbe50af05f20f Mon Sep 17 00:00:00 2001 From: Richie McIlroy <33632126+richiemcilroy@users.noreply.github.com> Date: Wed, 20 Mar 2024 23:50:52 +0000 Subject: [PATCH] Add extra logging for bit depth --- apps/desktop/src-tauri/src/main.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/desktop/src-tauri/src/main.rs b/apps/desktop/src-tauri/src/main.rs index 247aefcd..6065bc0d 100644 --- a/apps/desktop/src-tauri/src/main.rs +++ b/apps/desktop/src-tauri/src/main.rs @@ -123,8 +123,18 @@ fn main() { let monitor: MonitorHandle = event_loop.primary_monitor().expect("No primary monitor found"); let video_modes: Vec = 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);