Ignore:
Timestamp:
Dec 23, 2002, 11:06:27 AM (18 years ago)
Author:
Sam Hocevar
Message:
  • added support for --disable-slang.
  • fixed an overflow in the tunnel update code.
  • fragbomb is now 'f', not 'd'.
  • added a missing call to init_bonus().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/graphics.c

    r37 r51  
    44 *                 All Rights Reserved
    55 *
    6  *   $Id: graphics.c,v 1.4 2002/12/22 18:44:12 sam Exp $
     6 *   $Id: graphics.c,v 1.5 2002/12/23 10:06:27 sam Exp $
    77 *
    88 *   This program is free software; you can redistribute it and/or modify
     
    5050    SLsmg_cls();
    5151    SLsmg_refresh();
    52 #else
     52#elif USE_NCURSES
    5353    /* Initialize ncurses library */
    5454    initscr();
     
    5858    noecho();
    5959    nodelay(stdscr, TRUE);
     60#else
     61    /* Dummy driver */
    6062#endif
    6163
     
    8183    g->w = SLtt_Screen_Cols;
    8284    g->h = SLtt_Screen_Rows;
    83 #else
     85#elif USE_NCURSES
    8486    start_color();
    8587
     
    9799    g->w = COLS;
    98100    g->h = LINES;
     101#else
     102    /* Use dummy driver */
     103    g->w = 80;
     104    g->h = 25;
    99105#endif
    100106}
     
    107113        return SLang_getkey();
    108114    }
    109 #else
     115#elif USE_NCURSES
    110116    char key;
    111117
     
    114120        return key;
    115121    }
     122#else
     123    /* Use dummy driver */
    116124#endif
    117125
     
    123131#ifdef USE_SLANG
    124132    SLsmg_cls();
     133#elif USE_NCURSES
     134    clear();
    125135#else
    126     clear();
     136    /* Use dummy driver */
    127137#endif
    128138}
     
    133143#ifdef USE_SLANG
    134144    SLsmg_refresh();
     145#elif USE_NCURSES
     146    refresh();
    135147#else
    136     refresh();
     148    /* Use dummy driver */
    137149#endif
    138150}
     
    143155    SLang_reset_tty();
    144156    SLsmg_reset_smg();
     157#elif USE_NCURSES
     158    endwin();
    145159#else
    146     endwin();
     160    /* Use dummy driver */
    147161#endif
    148162}
    149163
    150 
Note: See TracChangeset for help on using the changeset viewer.