Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1528 → Rev 1527

/uspace/trunk/tetris/screen.c
97,7 → 97,6
scr_clear(void)
{
 
resume_normal();
send_call(con_phone, CONSOLE_CLEAR, 0);
curscore = -1;
memset((char *)curscreen, 0, sizeof(curscreen));
187,6 → 186,12
}
 
 
#if vax && !__GNUC__
typedef int regcell; /* pcc is bad at `register char', etc */
#else
typedef cell regcell;
#endif
 
/*
* Update the screen.
*/
194,7 → 199,7
scr_update(void)
{
cell *bp, *sp;
cell so, cur_so = 0;
regcell so, cur_so = 0;
int i, ccol, j;
static const struct shape *lastshape;
 
294,12 → 299,17
scr_msg(char *s, int set)
{
int l = strlen(s);
moveto(Rows - 2, ((Cols - l) >> 1) - 1);
if (set)
putstr(s);
else
while (--l >= 0)
(void) putchar(' ');
if (set || CEstr == NULL) {
int l = strlen(s);
 
moveto(Rows - 2, ((Cols - l) >> 1) - 1);
if (set)
putstr(s);
else
while (--l >= 0)
(void) putchar(' ');
} else {
moveto(Rows - 2, 0);
putpad(CEstr);
}
}
/uspace/trunk/tetris/tetris.c
45,10 → 45,12
* Tetris (or however it is spelled).
*/
 
//#include <sys/param.h>
#include <sys/time.h>
#include <sys/types.h>
 
#include <err.h>
//#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>