revert between 56095 -> 55830 in arch
[AROS.git] / rom / devs / console / charmap.h
blob8a4b4b81c920c9eac285f4cb285a4101e7fbaa49
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef CHARMAP_H
7 #define CHARMAP_H
9 #include <exec/types.h>
11 // FIXME:
12 // This wastes a lot of memory - most characters are likely to share the
13 // same fg/bg/flags. One option would be to optimize away the fgpen/bgpen/
14 // flags buffers if they're the same for every character in the line
15 struct charmap_line
17 // FIXME: Replace with a MinNode?
18 struct charmap_line *next;
19 struct charmap_line *prev;
21 ULONG size;
22 char *text;
23 BYTE *fgpen;
24 BYTE *bgpen;
25 BYTE *flags;
28 VOID charmap_dispose_lines(struct charmap_line *line);
29 struct charmap_line *charmap_dispose_line(struct charmap_line *line);
30 struct charmap_line *charmap_newline(struct charmap_line *next,
31 struct charmap_line *prev);
32 VOID charmap_resize(struct charmap_line *line, ULONG newsize);
34 #endif