chiark / gitweb /
hand: text, fix position
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 23 Mar 2021 23:42:17 +0000 (23:42 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 23 Mar 2021 23:42:17 +0000 (23:42 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/hand.rs

index 4679ed8692a6835e69331d0429e1ececdd43dcee..f04c7c24bb33d8842d5c39bd8e54643380ec7e33 100644 (file)
@@ -121,8 +121,8 @@ impl PieceTrait for Hand {
         let y = &mut pos.0[1];
         *y += 0.5 * fontsz;
         match spec.place {
-          TopLeft => { *y *= -1. },
-          BottomLeft => { },
+          BottomLeft => { *y *= -1. },
+          TopLeft => { }
         };
         *y += 0.5 * fontsz;
         pos