Home
last modified time | relevance | path

Searched refs:FROMCOORD (Results 1 – 25 of 32) sorted by relevance

12

/dports/games/sgt-puzzles/puzzles-20220128.c43a34f/
H A Dpegs.c810 #define FROMCOORD(x) ( ((x) + TILESIZE - BORDER) / TILESIZE - 1 ) macro
846 tx = FROMCOORD(x); in interpret_move()
847 ty = FROMCOORD(y); in interpret_move()
874 tx = FROMCOORD(x); in interpret_move()
875 ty = FROMCOORD(y); in interpret_move()
H A Dgalaxies.c2420 #define FROMCOORD(x) ( ((x) - BORDER) / TILE_SIZE ) macro
2499 px = 2*FROMCOORD((float)x) + 0.5; in interpret_move()
2500 py = 2*FROMCOORD((float)y) + 0.5; in interpret_move()
2573 coord_round_to_edge(FROMCOORD((float)x), FROMCOORD((float)y), in interpret_move()
2587 px = (int)(2*FROMCOORD((float)x) + 0.5); in interpret_move()
2588 py = (int)(2*FROMCOORD((float)y) + 0.5); in interpret_move()
2618 px = 2*FROMCOORD(x+TILE_SIZE) - 1; in interpret_move()
2619 py = 2*FROMCOORD(y+TILE_SIZE) - 1; in interpret_move()
2653 px = 2*FROMCOORD(x+TILE_SIZE) - 1; in interpret_move()
2654 py = 2*FROMCOORD(y+TILE_SIZE) - 1; in interpret_move()
H A Dsixteen.c21 #define FROMCOORD(x) ( ((x) - BORDER + 2*TILE_SIZE) / TILE_SIZE - 2 ) macro
676 cx = FROMCOORD(x); in interpret_move()
677 cy = FROMCOORD(y); in interpret_move()
H A Dfifteen.c19 #define FROMCOORD(x) ( ((x) - BORDER + TILE_SIZE) / TILE_SIZE - 1 ) macro
698 nx = FROMCOORD(x); in interpret_move()
699 ny = FROMCOORD(y); in interpret_move()
H A Dinertia.c1567 #define FROMCOORD(x) ( ((x) - BORDER + TILESIZE) / TILESIZE - 1 ) macro
1586 if (FROMCOORD(x) != state->px || FROMCOORD(y) != state->py) { in interpret_move()
1590 dx = FROMCOORD(x) - state->px; in interpret_move()
1591 dy = FROMCOORD(y) - state->py; in interpret_move()
H A Dflood.c809 #define FROMCOORD(x) ( ((x) - BORDER + TILESIZE) / TILESIZE - 1 ) macro
821 tx = FROMCOORD(x); in interpret_move()
822 ty = FROMCOORD(y); in interpret_move()
H A Dflip.c31 #define FROMCOORD(x) ( ((x) - BORDER + TILE_SIZE) / TILE_SIZE - 1 ) macro
948 tx = FROMCOORD(x), ty = FROMCOORD(y); in interpret_move()
H A Dtwiddle.c22 #define FROMCOORD(x) ( ((x) - BORDER + TILE_SIZE) / TILE_SIZE - 1 ) macro
679 x = FROMCOORD(x); in interpret_move()
680 y = FROMCOORD(y); in interpret_move()
H A Dtents.c1475 #define FROMCOORD(x) ( ((x) - TLBORDER + TILESIZE) / TILESIZE - 1 ) macro
1552 x = FROMCOORD(x); in interpret_move()
1553 y = FROMCOORD(y); in interpret_move()
1572 x = FROMCOORD(x); in interpret_move()
1573 y = FROMCOORD(y); in interpret_move()
H A Dsamegame.c84 #define FROMCOORD(x) ( ((x) - BORDER + TILE_SIZE) / TILE_SIZE - 1 ) macro
1282 tx = FROMCOORD(x); ty= FROMCOORD(y); in interpret_move()
H A Dsignpost.c20 #define FROMCOORD(x) ( ((x) - BORDER + TILE_SIZE) / TILE_SIZE - 1 ) macro
1441 int x = FROMCOORD(mx), y = FROMCOORD(my), w = state->w; in interpret_move()
1999 int fx = FROMCOORD(ui->dx), fy = FROMCOORD(ui->dy); in draw_drag_indicator()
H A Dpearl.c1858 #define FROMCOORD(x) ( ((x) < BORDER) ? -1 : ( ((x) - BORDER) / TILE_SIZE) ) macro
2069 int gx = FROMCOORD(x), gy = FROMCOORD(y), i; in interpret_move()
2186 gx = FROMCOORD(x); in interpret_move()
2187 gy = FROMCOORD(y); in interpret_move()
H A Dpalisade.c914 #define FROMCOORD(x) (((x) - MARGIN) / TILESIZE) macro
927 int gx = FROMCOORD(x), gy = FROMCOORD(y), possible = BORDER_MASK; in interpret_move()
H A Drange.c1261 #define FROMCOORD(x) (((x) - BORDER) / TILESIZE) macro
1276 r = FROMCOORD(y + TILESIZE) - 1; /* or (x, y) < TILESIZE) */ in interpret_move()
1277 c = FROMCOORD(x + TILESIZE) - 1; /* are considered inside */ in interpret_move()
H A Dtowers.c1205 #define FROMCOORD(x) (((x)+(TILESIZE-BORDER)) / TILESIZE - 1) macro
1353 tx = FROMCOORD(x); in interpret_move()
1354 ty = FROMCOORD(y); in interpret_move()
H A Dunruly.c1579 #define FROMCOORD(x) ( ((x)-(ds->tilesize/2)) / ds->tilesize ) macro
1588 int gx = FROMCOORD(ox); in interpret_move()
1589 int gy = FROMCOORD(oy); in interpret_move()
H A Dsingles.c78 #define FROMCOORD(x) ( ((x) - BORDER + TILE_SIZE) / TILE_SIZE - 1 ) macro
1497 int i, x = FROMCOORD(mx), y = FROMCOORD(my); in interpret_move()
H A Dslant.c1612 #define FROMCOORD(x) ( ((x) - BORDER + TILESIZE) / TILESIZE - 1 ) macro
1679 x = FROMCOORD(x); in interpret_move()
1680 y = FROMCOORD(y); in interpret_move()
H A Dtracks.c2015 #define FROMCOORD(x) ( ((x) < BORDER) ? -1 : ( ((x) - BORDER) / TILE_SIZE) - 1 ) macro
2185 int gx = FROMCOORD(x), gy = FROMCOORD(y); in interpret_move()
2254 if (!INGRID(state, gx, gy) || FROMCOORD(x) != gx || FROMCOORD(y) != gy) in interpret_move()
H A Dpattern.c33 #define FROMCOORD(d, x) \ macro
1259 x = FROMCOORD(state->common->w, x); in interpret_move()
1260 y = FROMCOORD(state->common->h, y); in interpret_move()
H A Dkeen.c1577 #define FROMCOORD(x) (((x)+(TILESIZE-BORDER)) / TILESIZE - 1) macro
1714 tx = FROMCOORD(x); in interpret_move()
1715 ty = FROMCOORD(y); in interpret_move()
H A Dlightup.c76 #define FROMCOORD(x) ( ((x) - BORDER + TILE_SIZE) / TILE_SIZE - 1 ) macro
1897 cx = FROMCOORD(x); in interpret_move()
1898 cy = FROMCOORD(y); in interpret_move()
H A Dunequal.c44 #define FROMCOORD(x) ( ((x) - BORDER + SQUARE_SIZE) / SQUARE_SIZE - 1 ) macro
1490 int x = FROMCOORD(ox), y = FROMCOORD(oy), n; in interpret_move()
/dports/games/sgt-puzzles/puzzles-20220128.c43a34f/unfinished/
H A Dgroup.c1335 #define FROMCOORD(x) (((x)+(TILESIZE-BORDER-LEGEND)) / TILESIZE - 1) macro
1497 tx = FROMCOORD(x); in interpret_move()
1498 ty = FROMCOORD(y); in interpret_move()
1576 ui->edgepos = FROMCOORD(x + TILESIZE/2); in interpret_move()
1582 ui->edgepos = FROMCOORD(y + TILESIZE/2); in interpret_move()
H A Dslide.c1234 #define FROMCOORD(x) ( ((x) - BORDER + TILESIZE) / TILESIZE - 1 ) macro
1256 tx = FROMCOORD(x); in interpret_move()
1257 ty = FROMCOORD(y); in interpret_move()
1357 tx = FROMCOORD(x); in interpret_move()
1358 ty = FROMCOORD(y); in interpret_move()

12