" desktop_display_mode: {:?}",
video.desktop_display_mode(display).unwrap()
);
+ let current = video.current_display_mode(display).unwrap();
println!(
" current_display_mode: {:?}",
- video.current_display_mode(display).unwrap()
+ current
);
- for mode in 0..video.num_display_modes(display).unwrap() {
+ for idx in 0..video.num_display_modes(display).unwrap() {
+ let mode = video.display_mode(display, idx).unwrap();
println!(
- " {:2}: {:?}",
- mode,
- video.display_mode(display, mode).unwrap()
+ " {}{:2}: {:?}",
+ if mode == current { "*" } else { " " },
+ idx,
+ mode
);
}
}