~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Document the mouse control method for Cube.
[sgt/puzzles]
/
netslide.c
diff --git
a/netslide.c
b/netslide.c
index
324946e
..
86efb2f
100644
(file)
--- a/
netslide.c
+++ b/
netslide.c
@@
-13,8
+13,6
@@
#include "puzzles.h"
#include "tree234.h"
#include "puzzles.h"
#include "tree234.h"
-#define PI 3.141592653589793238462643383279502884197169399
-
#define MATMUL(xr,yr,m,x,y) do { \
float rx, ry, xx = (x), yy = (y), *mat = (m); \
rx = mat[0] * xx + mat[2] * yy; \
#define MATMUL(xr,yr,m,x,y) do { \
float rx, ry, xx = (x), yy = (y), *mat = (m); \
rx = mat[0] * xx + mat[2] * yy; \
@@
-1051,7
+1049,7
@@
static void slide_col(game_state *state, int dir, int col)
}
static game_state *make_move(game_state *state, game_ui *ui,
}
static game_state *make_move(game_state *state, game_ui *ui,
- int x, int y, int button)
+
game_drawstate *ds,
int x, int y, int button)
{
int cx, cy;
int n, dx, dy;
{
int cx, cy;
int n, dx, dy;