Last change
on this file since 159 was
159,
checked in by Sam Hocevar, 19 years ago
|
- 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.
|
-
Property svn:keywords set to
Id
|
File size:
1.0 KB
|
Line | |
---|
1 | /* |
---|
2 | * libee ASCII-Art library |
---|
3 | * Copyright (c) 2002, 2003 Sam Hocevar <sam@zoy.org> |
---|
4 | * All Rights Reserved |
---|
5 | * |
---|
6 | * $Id: ee_internals.h 159 2003-11-12 21:18:50Z sam $ |
---|
7 | * |
---|
8 | * This program is free software; you can redistribute it and/or modify |
---|
9 | * it under the terms of the GNU General Public License as published by |
---|
10 | * the Free Software Foundation; either version 2 of the License, or |
---|
11 | * (at your option) any later version. |
---|
12 | * |
---|
13 | * This program is distributed in the hope that it will be useful, |
---|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | * GNU General Public License for more details. |
---|
17 | * |
---|
18 | * You should have received a copy of the GNU General Public License |
---|
19 | * along with this program; if not, write to the Free Software |
---|
20 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
21 | */ |
---|
22 | |
---|
23 | #ifndef __EE_INTERNALS_H__ |
---|
24 | #define __EE_INTERNALS_H__ |
---|
25 | |
---|
26 | #if defined(USE_NCURSES) |
---|
27 | extern int _ee_attr[]; |
---|
28 | #endif |
---|
29 | |
---|
30 | #if defined(USE_CONIO) |
---|
31 | extern char *_ee_screen; |
---|
32 | #endif |
---|
33 | |
---|
34 | #endif /* __EE_INTERNALS_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.