From 13e09bc792966418b86e1d45f9c66322f767e0c8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 14 May 2022 21:57:01 +0100 Subject: [PATCH] otterlib: Show selection ring *over* the piece This is what the game UI does. Signed-off-by: Ian Jackson --- src/bin/otterlib.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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!(""); -- 2.30.2