summaryrefslogtreecommitdiff
path: root/test/checkers.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2022-01-26 22:55:12 +0100
committerMatthias Melcher <github@matthiasm.com>2022-01-26 22:55:22 +0100
commit84c0b7495b0859cce8b79fc6e4ceee19bc4f2f35 (patch)
tree6902396a8b971346e006a5daab69e389f667f8fc /test/checkers.cxx
parent573921677c7f6310a16d58f23c67fac34b0d82bb (diff)
#31, HiDPI checkers, animation timing
Diffstat (limited to 'test/checkers.cxx')
-rw-r--r--test/checkers.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/checkers.cxx b/test/checkers.cxx
index 24dd47ca0..8944bb35a 100644
--- a/test/checkers.cxx
+++ b/test/checkers.cxx
@@ -907,7 +907,7 @@ public:
#define BOXSIZE 52
#define BORDER 4
#define BOARDSIZE (8*BOXSIZE+BORDER)
-#define BMOFFSET 5
+#define BMOFFSET 3
static int erase_this; // real location of dragging piece, don't draw it
static int dragging; // piece being dragged
@@ -1018,6 +1018,7 @@ void Board::animate(node* move, int backwards) {
int y = y1+(y2-y1)*j/STEPS;
drag_piece(move->from,x,y);
Fl::flush();
+ Fl::wait(0.01);
}
drop_piece(t);
if (move->jump) redraw();