Ignore:
Timestamp:
Nov 12, 2003, 10:18:50 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • libee/ee.h: + Added ee_color_names[] containing our 16 color names.
  • libee/ee.c: + Extended our color set to the full 16 instead of 10. + Precalculate ncurses attributes.
  • libee/graphics.c: + Clip color value in ee_set_color(). + Clip characters in ee_putchar(). + Partially clip characters in ee_putstr(), overflows aren't checked yet.
  • libee/ee_internals.h: + New file to share extern variables within libee.
  • test/demo.c: + Added a simple demo_color() to output all colors. + Replaced four ee_draw_line() with ee_draw_thin_box(). + Replaced x1, y1, x2 etc. with xa, ya, xb etc. because <math.h> already

defines y1.

+ Randomized colours from 0 to 15 instead of 1 to 10.

  • src/Makefiles.am: + Added -lm to the ttyvaders linking flags because of the intro.
  • README BUGS TODO: + Updated.
File:
1 edited

Legend:

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

    r152 r160  
    2323#include "config.h"
    2424
    25 #ifdef USE_SLANG
    26 #   include <slang.h>
    27 #elif USE_NCURSES
    28 #   include <curses.h>
    29 #endif
    30 
    3125#include <stdlib.h>
    3226
    3327#include "ee.h"
     28#include "ee_internals.h"
    3429
    3530void ee_draw_triangle(int x1, int y1, int x2, int y2, int x3, int y3, char c)
Note: See TracChangeset for help on using the changeset viewer.