X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fgame%2Fapp.rs;h=88f8e88c2a5a66388d3035c80ba30fb16b3db2bf;hb=1f362f49cdf5be9165262e10d4aa2fbdcf392ad1;hp=3e11b5d7ae9590e6f7654ba6915c3f110c6a8e90;hpb=77034de98f1182979c74c6ccc81944ef74db35b4;p=kaka%2Frust-sdl-test.git diff --git a/src/game/app.rs b/src/game/app.rs index 3e11b5d..88f8e88 100644 --- a/src/game/app.rs +++ b/src/game/app.rs @@ -107,15 +107,18 @@ impl AppBuilder { " 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 ); } }