Lines Matching refs:scr
29 #define ToRowCol( scr, lin, r, c ) \
30 r = (lin) / scr->cols; \
31 c = ((lin) - r * (scr->cols)) % scr->cols;
32 #define Linear( scr, y, x ) \
33 ( (y) * scr->cols + (x) )
34 #define CharAt( scr, y, x ) \
35 ( scr->characters + Linear( scr, y, x ) )
36 #define FlagAt( scr, y, x ) \
37 ( scr->flags + Linear( scr, y, x ) )
39 #define XPOS( scr, x ) \
40 scr->ch_width * (x)
41 #define YTOP( scr, y ) \
42 scr->ch_height * (y)
43 #define YPOS( scr, y ) \
44 YTOP( scr, ((y)+1) ) - scr->ch_descent
46 #define ROW( scr, y ) \
47 ( (y) / scr->ch_height )
49 #define COLUMN( scr, x ) \
50 ( (x) / scr->ch_width )