mirror of
https://github.com/fltk/fltk.git
synced 2026-06-07 00:55:23 +08:00
Added Gustavo's damage() update - now use symbolic constants for all values!
git-svn-id: file:///fltk/svn/fltk/trunk@18 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+4
-4
@@ -989,8 +989,8 @@ void Board::drag_piece(int i, int dx, int dy) {
|
||||
dragging = b[i];
|
||||
}
|
||||
if (dx != dragx || dy != dragy) {
|
||||
damage(4, dragx, dragy, ISIZE, ISIZE);
|
||||
damage(4, dx, dy, ISIZE, ISIZE);
|
||||
damage(FL_DAMAGE_OVERLAY, dragx, dragy, ISIZE, ISIZE);
|
||||
damage(FL_DAMAGE_OVERLAY, dx, dy, ISIZE, ISIZE);
|
||||
}
|
||||
dragx = dx;
|
||||
dragy = dy;
|
||||
@@ -1004,8 +1004,8 @@ void Board::drop_piece(int i) {
|
||||
int x = squarex(i);
|
||||
int y = squarey(i);
|
||||
if (x != dragx || y != dragy) {
|
||||
damage(4, dragx, dragy, ISIZE, ISIZE);
|
||||
damage(4, x, y, ISIZE, ISIZE);
|
||||
damage(FL_DAMAGE_OVERLAY, dragx, dragy, ISIZE, ISIZE);
|
||||
damage(FL_DAMAGE_OVERLAY, x, y, ISIZE, ISIZE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user