Ignore:
Timestamp:
Nov 11, 2003, 12:38:50 AM (16 years ago)
Author:
Sam Hocevar
Message:
  • libee/graphics.c: + Moved ee_putstr() and ee_putchar() in here.
  • libee/ee.h: + Got rid of ee_goto(). + Moved <slang.h> or <curses.h> into libee.
  • Replaced ee_goto()/ee_putstr() pairs with ee_putstr().
  • Ditto for ee_putchar().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ttyvaders/trunk/libee/ee.c

    r94 r148  
    2222
    2323#include "config.h"
     24
     25#ifdef USE_SLANG
     26#   include <slang.h>
     27#elif USE_NCURSES
     28#   include <curses.h>
     29#endif
    2430
    2531#include <stdlib.h>
     
    128134}
    129135
    130 void ee_clear(void)
    131 {
    132 #if defined(USE_SLANG) || defined(USE_NCURSES)
    133     /* We could use SLsmg_cls(), but drawing empty lines is much faster */
    134     int x = ee_get_width(), y = ee_get_height();
    135     char *empty_line = malloc((x + 1) * sizeof(char));
    136 
    137     memset(empty_line, ' ', x);
    138     empty_line[x] = '\0';
    139 
    140     while(y--)
    141     {
    142         ee_goto(0, y);
    143         ee_putstr(empty_line);
    144     }
    145 
    146     free(empty_line);
    147 #else
    148     /* Use dummy driver */
    149 #endif
    150 }
    151 
    152136static int64_t local_time(void)
    153137{
     
    166150    static int64_t local_clock = 0;
    167151    int64_t now;
    168 
    169     ee_goto(0, 0);
    170152
    171153    if(!local_clock)
Note: See TracChangeset for help on using the changeset viewer.