Mercurial > hg > forks > pwpunix
annotate pwplib/convert.h @ 56:5d819ba6891c
More cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 27 May 2010 22:48:37 +0300 |
parents | 77f40a3c0095 |
children | 0e2d7767c00d |
rev | line source |
---|---|
54
85671798fdb3
Various code cleanups, cosmetics, warning fixes.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
1 #ifndef PWP_CONVERT_H |
85671798fdb3
Various code cleanups, cosmetics, warning fixes.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
2 #define PWP_CONVERT_H |
85671798fdb3
Various code cleanups, cosmetics, warning fixes.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
3 |
0 | 4 #include "pwplib.h" |
5 | |
6 #ifndef __CONVERT_C | |
7 extern | |
8 #endif | |
9 struct | |
10 { | |
11 u8 rast[256*2]; | |
12 u8 font[256],col[256]; | |
13 | |
14 u16 tab1to12[256]; | |
15 /* tab1to22 */ | |
16 | |
17 u16 megatab[256*256]; | |
18 u16 rasthalve[256*256]; | |
19 | |
20 void(*orig_dump_attr)(); | |
54
85671798fdb3
Various code cleanups, cosmetics, warning fixes.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
21 } pwpconv; |
85671798fdb3
Various code cleanups, cosmetics, warning fixes.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
22 |
55 | 23 /* convert.c */ |
24 void conv_init(int colors,int chars,int rasters); | |
25 | |
26 /* attrconv.c */ | |
27 void convcalc_1to12(void); | |
28 void convcalc_ascii(int x); | |
29 void convcalc_termsafe(void); | |
30 void convcalc_monotab(int parms); | |
31 void convcalc_colortab(int parms); | |
32 void convcalc_megatab_finish(int flags); | |
33 void conv_dump_ibm_megatab(void); | |
34 void conv_dump_ibm(void); | |
35 | |
36 /* rastconv.c */ | |
37 void convcalc_rast_ibmcol(void); | |
38 void conv_dump_rast(void); | |
39 void convcalc_rast_col(void); | |
40 void convcalc_rast_mono(void); | |
56 | 41 void conv_fromrast_full(u8*d,u8*s,int lgt); |
54
85671798fdb3
Various code cleanups, cosmetics, warning fixes.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
42 |
85671798fdb3
Various code cleanups, cosmetics, warning fixes.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
43 #endif /* PWP_CONVERT_H */ |