version 1.33, 2017/03/20 22:05:27 |
version 1.34, 2021/05/02 12:50:46 |
Line 318 scr_update(void) |
|
Line 318 scr_update(void) |
|
/* draw preview of nextpattern */ |
/* draw preview of nextpattern */ |
if (showpreview && (nextshape != lastshape)) { |
if (showpreview && (nextshape != lastshape)) { |
static int r=5, c=2; |
static int r=5, c=2; |
int tr, tc, t; |
int tr, tc, t; |
|
|
lastshape = nextshape; |
lastshape = nextshape; |
|
|
/* clean */ |
/* clean */ |
putpad(exit_standout_mode); |
putpad(exit_standout_mode); |
moveto(r-1, c-1); putstr(" "); |
moveto(r-1, c-1); putstr(" "); |
Line 331 scr_update(void) |
|
Line 331 scr_update(void) |
|
|
|
moveto(r-3, c-2); |
moveto(r-3, c-2); |
putstr("Next shape:"); |
putstr("Next shape:"); |
|
|
/* draw */ |
/* draw */ |
setcolor(nextshape->color); |
setcolor(nextshape->color); |
putpad(enter_standout_mode); |
putpad(enter_standout_mode); |
Line 349 scr_update(void) |
|
Line 349 scr_update(void) |
|
} |
} |
putpad(exit_standout_mode); |
putpad(exit_standout_mode); |
} |
} |
|
|
bp = &board[D_FIRST * B_COLS]; |
bp = &board[D_FIRST * B_COLS]; |
sp = &curscreen[D_FIRST * B_COLS]; |
sp = &curscreen[D_FIRST * B_COLS]; |
for (j = D_FIRST; j < D_LAST; j++) { |
for (j = D_FIRST; j < D_LAST; j++) { |
Line 415 scr_update(void) |
|
Line 415 scr_update(void) |
|
void |
void |
scr_msg(char *s, int set) |
scr_msg(char *s, int set) |
{ |
{ |
|
|
if (set || clr_eol == NULL) { |
if (set || clr_eol == NULL) { |
int l = strlen(s); |
int l = strlen(s); |
|
|