From: Ian Jackson Date: Sat, 14 May 2022 20:57:01 +0000 (+0100) Subject: otterlib: Show selection ring *over* the piece X-Git-Tag: otter-1.1.0~164 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=13e09bc792966418b86e1d45f9c66322f767e0c8;p=otter.git otterlib: Show selection ring *over* the piece This is what the game UI does. Signed-off-by: Ian Jackson --- diff --git a/src/bin/otterlib.rs b/src/bin/otterlib.rs index 4d618c08..70368d82 100644 --- a/src/bin/otterlib.rs +++ b/src/bin/otterlib.rs @@ -196,16 +196,17 @@ fn preview(opts: &Opts, items: Vec) { print!(r#""#, &viewport, wh[0], wh[1]); + let mut html = Html::lit("").into(); + gpc.face = face.into(); + p.svg_piece(&mut html, &gpc, &GameState::dummy(), default())?; + println!("{}", html); if inseveral == 1 { let dasharray = player_num_dasharray(1.try_into().unwrap()); println!(r#""#, &surround, &dasharray, HELD_SURROUND_COLOUR); } - let mut html = Html::lit("").into(); - gpc.face = face.into(); - p.svg_piece(&mut html, &gpc, &GameState::dummy(), default())?; - println!("{}", html); + println!(""); } println!("");