diff options
| author | Matthias Melcher <github@matthiasm.com> | 2022-01-26 22:55:12 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2022-01-26 22:55:22 +0100 |
| commit | 84c0b7495b0859cce8b79fc6e4ceee19bc4f2f35 (patch) | |
| tree | 6902396a8b971346e006a5daab69e389f667f8fc /test/checkers.cxx | |
| parent | 573921677c7f6310a16d58f23c67fac34b0d82bb (diff) | |
#31, HiDPI checkers, animation timing
Diffstat (limited to 'test/checkers.cxx')
| -rw-r--r-- | test/checkers.cxx | 3 |
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(); |
