Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1721 → Rev 1710

/uspace/trunk/tetris/tetris.c
165,6 → 165,10
srandom(tv.tv_sec + tv.tv_usec / 100000);
}
 
static void tetris_scores(int firstgame)
{
}
 
static void tetris_menu_draw(int level)
{
clear_screen();
255,7 → 259,8
char *keys;
int level = 2;
char key_write[6][10];
int i, j;
const char *errstr;
int ch, i, j;
 
keys = "jkl pq";
 
445,8 → 450,7
break
*/
scr_end();
 
return 0;
exit(0);
}
 
/* void */
/uspace/trunk/tetris/input.c
108,7 → 108,7
s = &endtv;
} else
s = NULL;
 
again:
if (!lastchar) {
if (!getchar_inprog)
getchar_inprog = async_send_2(1,CONSOLE_GETCHAR,0,0,&charcall);
142,6 → 142,7
tsleep(void)
{
struct timeval tv;
char c;
 
tv.tv_sec = 0;
tv.tv_usec = fallrate;
/uspace/trunk/tetris/screen.c
61,8 → 61,15
static cell curscreen[B_SIZE]; /* 1 => standout (or otherwise marked) */
static int curscore;
static int isset; /* true => terminal is in game mode */
static void (*tstp)(int);
 
static void scr_stop(int);
static void stopset(int);
 
static char
*CEstr; /* clear to end of line */
 
 
/*
* putstr() is for unpadded strings (either as in termcap(5) or
* simply literal strings);
141,6 → 148,15
return async_req_2(con_phone, CONSOLE_GETSIZE, 0, 0, &ws->ws_row, &ws->ws_col);
}
 
static void
scr_stop(int sig)
{
 
scr_end();
scr_set();
scr_msg(key_msg, 1);
}
 
/*
* Set up screen mode.
*/