Ignore:
Timestamp:
Nov 11, 2003, 12:38:50 AM (17 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/conic.c

    r138 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>
     
    100106
    101107    if((b & (0x1|0x4)) == (0x1|0x4))
    102     {
    103         ee_goto(xo + x, yo + y);
    104         ee_putchar(c);
    105     }
     108        ee_putchar(xo + x, yo + y, c);
    106109
    107110    if((b & (0x2|0x4)) == (0x2|0x4))
    108     {
    109         ee_goto(xo - x, yo + y);
    110         ee_putchar(c);
    111     }
     111        ee_putchar(xo - x, yo + y, c);
    112112
    113113    if((b & (0x1|0x8)) == (0x1|0x8))
    114     {
    115         ee_goto(xo + x, yo - y);
    116         ee_putchar(c);
    117     }
     114        ee_putchar(xo + x, yo - y, c);
    118115
    119116    if((b & (0x2|0x8)) == (0x2|0x8))
    120     {
    121         ee_goto(xo - x, yo - y);
    122         ee_putchar(c);
    123     }
     117        ee_putchar(xo - x, yo - y, c);
    124118}
    125119
Note: See TracChangeset for help on using the changeset viewer.