Changes in uspace/app/tetris/screen.c [09f41d3:e116461] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tetris/screen.c
r09f41d3 re116461 1 1 /* 2 * Copyright (c) 2024 Jiri Svoboda3 2 * Copyright (c) 2011 Martin Decky 4 3 * All rights reserved. … … 80 79 static usec_t timeleft = 0; 81 80 82 bool size_changed;83 81 console_ctrl_t *console; 84 82 … … 144 142 console_cursor_visibility(console, 0); 145 143 resume_normal(); 146 scr_ set();144 scr_clear(); 147 145 } 148 146 … … 171 169 } 172 170 173 if ((ccap & CONSOLE_CAP_CURSORCTL) == 0) {174 stop("Your screen does not support cursor control.\n");175 return;176 }177 171 *rgb = ((ccap & CONSOLE_CAP_RGB) == CONSOLE_CAP_RGB); 178 172 *color = ((ccap & CONSOLE_CAP_INDEXED) == CONSOLE_CAP_INDEXED); … … 200 194 201 195 snprintf(smallscr, sizeof(smallscr), 202 "the screen is too small (must be at least %dx%d) \n",196 "the screen is too small (must be at least %dx%d)", 203 197 MINROWS, MINCOLS); 204 198 stop(smallscr); … … 223 217 224 218 fprintf(stderr, "aborting: %s", why); 225 exit(1);219 abort(); 226 220 } 227 221 … … 416 410 exit(1); 417 411 418 if (event.type == CEV_RESIZE)419 size_changed = true;420 421 412 if (event.type == CEV_KEY && event.ev.key.type == KEY_PRESS) 422 413 c = event.ev.key.c;
Note:
See TracChangeset
for help on using the changeset viewer.