Changeset 86029498 in mainline for tetris/screen.c
- Timestamp:
- 2006-06-02T21:53:26Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 59ed572
- Parents:
- 2408969
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tetris/screen.c
r2408969 r86029498 160 160 char smallscr[55]; 161 161 162 (void)snprintf(smallscr, sizeof(smallscr),162 snprintf(smallscr, sizeof(smallscr), 163 163 "the screen is too small (must be at least %dx%d)", 164 164 MINROWS, MINCOLS); … … 204 204 if (score != curscore) { 205 205 moveto(0, 0); 206 (void)printf("Score: %d", score);206 printf("Score: %d", score); 207 207 curscore = score; 208 208 } … … 252 252 *sp = so; 253 253 if (i != ccol) { 254 if (cur_so) { 255 resume_normal(); 256 cur_so = 0; 257 } 254 258 moveto(RTOD(j), CTOD(i)); 255 259 } … … 262 266 } 263 267 putstr(" "); 268 264 269 ccol = i + 1; 265 270 /* … … 282 287 } 283 288 } 284 resume_normal();285 289 if (cur_so) 290 resume_normal(); 286 291 fflush(); 287 292 }
Note:
See TracChangeset
for help on using the changeset viewer.