From 84c0b7495b0859cce8b79fc6e4ceee19bc4f2f35 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 26 Jan 2022 22:55:12 +0100 Subject: #31, HiDPI checkers, animation timing --- test/checkers.cxx | 3 ++- test/checkers_pieces.fl | 4 ++-- test/pixmaps/black_checker.png | Bin 14657 -> 19131 bytes test/pixmaps/black_checker_king.png | Bin 16902 -> 21366 bytes test/pixmaps/white_checker.png | Bin 17471 -> 18587 bytes test/pixmaps/white_checker_king.png | Bin 19883 -> 21280 bytes 6 files changed, 4 insertions(+), 3 deletions(-) (limited to 'test') 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(); diff --git a/test/checkers_pieces.fl b/test/checkers_pieces.fl index 11e90f505..8c4894fce 100644 --- a/test/checkers_pieces.fl +++ b/test/checkers_pieces.fl @@ -23,10 +23,10 @@ comment {// data pixmaps_black_checker_png {public local filename {pixmaps/black_checker.png} } -data pixmaps_white_checker_png {public local filename {pixmaps/white_checker.png} +data pixmaps_white_checker_png {selected public local filename {pixmaps/white_checker.png} } -data pixmaps_black_checker_king_png {selected public local filename {pixmaps/black_checker_king.png} +data pixmaps_black_checker_king_png {public local filename {pixmaps/black_checker_king.png} } data pixmaps_white_checker_king_png {public local filename {pixmaps/white_checker_king.png} diff --git a/test/pixmaps/black_checker.png b/test/pixmaps/black_checker.png index 0d466af5f..4ea47a210 100644 Binary files a/test/pixmaps/black_checker.png and b/test/pixmaps/black_checker.png differ diff --git a/test/pixmaps/black_checker_king.png b/test/pixmaps/black_checker_king.png index a1aba7b55..a9b6f1b0d 100644 Binary files a/test/pixmaps/black_checker_king.png and b/test/pixmaps/black_checker_king.png differ diff --git a/test/pixmaps/white_checker.png b/test/pixmaps/white_checker.png index 55038f8f9..bd545a4f2 100644 Binary files a/test/pixmaps/white_checker.png and b/test/pixmaps/white_checker.png differ diff --git a/test/pixmaps/white_checker_king.png b/test/pixmaps/white_checker_king.png index da41b439b..f89a1fc28 100644 Binary files a/test/pixmaps/white_checker_king.png and b/test/pixmaps/white_checker_king.png differ -- cgit v1.2.3