Changeset d6cc453 in mainline for tetris/screen.c
- Timestamp:
- 2006-06-02T19:22:08Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 53daee3
- Parents:
- e87e18f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tetris/screen.c
re87e18f rd6cc453 98 98 { 99 99 100 resume_normal(); 100 101 send_call(con_phone, CONSOLE_CLEAR, 0); 101 102 curscore = -1; … … 187 188 188 189 189 #if vax && !__GNUC__190 typedef int regcell; /* pcc is bad at `register char', etc */191 #else192 typedef cell regcell;193 #endif194 195 190 /* 196 191 * Update the screen. … … 200 195 { 201 196 cell *bp, *sp; 202 regcell so, cur_so = 0;197 cell so, cur_so = 0; 203 198 int i, ccol, j; 204 199 static const struct shape *lastshape; … … 300 295 { 301 296 302 if (set || CEstr == NULL) { 303 int l = strlen(s); 304 305 moveto(Rows - 2, ((Cols - l) >> 1) - 1); 306 if (set) 307 putstr(s); 308 else 309 while (--l >= 0) 310 (void) putchar(' '); 311 } else { 312 moveto(Rows - 2, 0); 313 putpad(CEstr); 314 } 315 } 297 int l = strlen(s); 298 299 moveto(Rows - 2, ((Cols - l) >> 1) - 1); 300 if (set) 301 putstr(s); 302 else 303 while (--l >= 0) 304 (void) putchar(' '); 305 }
Note:
See TracChangeset
for help on using the changeset viewer.