#31, HiDPI checkers, animation timing
|
@ -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();
|
||||
|
|
|
@ -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}
|
||||
|
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 21 KiB |