Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tetris/screen.c

    r09f41d3 re116461  
    11/*
    2  * Copyright (c) 2024 Jiri Svoboda
    32 * Copyright (c) 2011 Martin Decky
    43 * All rights reserved.
     
    8079static usec_t timeleft = 0;
    8180
    82 bool size_changed;
    8381console_ctrl_t *console;
    8482
     
    144142        console_cursor_visibility(console, 0);
    145143        resume_normal();
    146         scr_set();
     144        scr_clear();
    147145}
    148146
     
    171169        }
    172170
    173         if ((ccap & CONSOLE_CAP_CURSORCTL) == 0) {
    174                 stop("Your screen does not support cursor control.\n");
    175                 return;
    176         }
    177171        *rgb = ((ccap & CONSOLE_CAP_RGB) == CONSOLE_CAP_RGB);
    178172        *color = ((ccap & CONSOLE_CAP_INDEXED) == CONSOLE_CAP_INDEXED);
     
    200194
    201195                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)",
    203197                    MINROWS, MINCOLS);
    204198                stop(smallscr);
     
    223217
    224218        fprintf(stderr, "aborting: %s", why);
    225         exit(1);
     219        abort();
    226220}
    227221
     
    416410                        exit(1);
    417411
    418                 if (event.type == CEV_RESIZE)
    419                         size_changed = true;
    420 
    421412                if (event.type == CEV_KEY && event.ev.key.type == KEY_PRESS)
    422413                        c = event.ev.key.c;
Note: See TracChangeset for help on using the changeset viewer.