#31, HiDPI checkers, animation timing

This commit is contained in:
Matthias Melcher 2022-01-26 22:55:12 +01:00
parent 573921677c
commit 84c0b7495b
6 changed files with 4 additions and 3 deletions

View File

@ -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();

View File

@ -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}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 21 KiB