-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathxio.h
192 lines (177 loc) · 3.47 KB
/
xio.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
/*
xskat - a card game for 1 to 3 players.
Copyright (C) 2004 Gunter Gerhardt
This program is free software; you can redistribute it freely.
Use it at your own risk; there is NO WARRANTY.
Redistribution of modified versions is permitted
provided that the following conditions are met:
1. All copyright & permission notices are preserved.
2.a) Only changes required for packaging or porting are made.
or
2.b) It is clearly stated who last changed the program.
The program is renamed or
the version number is of the form x.y.z,
where x.y is the version of the original program
and z is an arbitrary suffix.
*/
#ifndef XIO_H
#define XIO_H
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include "text.h"
#undef EXTERN
#ifdef XIO_C
#define EXTERN
#else
#define EXTERN extern
#endif
EXTERN tx_typ tspnames[3][2];
EXTERN int charw[3],charh[3];
EXTERN int lost[3];
EXTERN Display *dpy[3];
EXTERN Colormap cmap[3];
EXTERN Window win[3];
EXTERN unsigned long bpix[3],wpix[3],fgpix[3],bgpix[3],btpix[3];
EXTERN unsigned long b3dpix[3],w3dpix[3],mkpix[3];
EXTERN int gfx3d[3];
EXTERN GC gc[3],gcbck[3],gcxor[3];
EXTERN XFontStruct *dfont[3];
EXTERN int ggcards;
EXTERN Pixmap bck[3];
EXTERN Pixmap symbs[3];
EXTERN Pixmap cardpx[3][33];
EXTERN Cursor cursor[3][2];
EXTERN int actbtn[3];
EXTERN int skatopen,stichopen,spitzeopen,backopen[3];
EXTERN int ktrply,sptzmrk,schenkply;
EXTERN int revolsort,tauschcard,tauschdone,tauschply;
EXTERN long ticker;
EXTERN char *prog_name;
EXTERN char *disp_name[3];
EXTERN char *font_name;
EXTERN char *title[3];
EXTERN char *fg_col;
EXTERN char *bg_col;
EXTERN char *b3d_col;
EXTERN char *w3d_col;
EXTERN char *mk_col;
EXTERN char *bt_col;
EXTERN char *ccol[4];
EXTERN int nopre;
EXTERN int bwcol;
EXTERN int downup;
EXTERN int altseq;
EXTERN int geom_f[3],geom_x[3],geom_y[3];
EXTERN int colerr;
EXTERN XSizeHints szhints[3];
EXTERN XWMHints wmhints;
EXTERN struct
{
int num,act;
struct {
int x1,y1,x2,y2,f;
} p[21];
} selpos[3];
EXTERN struct
{
int large;
int x,y,w,h;
int col,plan;
int com1x,com2x,com1y,com2y;
int playx,playy;
int skatx,skaty;
int stichx,stichy;
int cbox1x,cbox2x,cboxy;
int pboxx,pboxy;
int cardx,cardw,cardh;
int f,q;
} desk[3];
EXTERN XColor color[3][256]
#ifdef XIO_C
=
{{
{0,0xffff,0x0000,0x0000},
{0,0xffff,0x0000,0x0000},
{0,0x0000,0x0000,0x0000},
{0,0x0000,0x0000,0x0000},
{0,0xff00,0xb400,0x0000},
{0,0x0000,0xb400,0x0000}
}}
#endif
;
EXTERN int cnts[]
#ifdef XIO_C
=
{
0,2,22,26,30,34,52,68,82
}
#endif
;
EXTERN int bigs[]
#ifdef XIO_C
=
{
33,60,
15,6, 51,6, 33,24, 15,43, 51,43, 15,77, 51,77, 33,93, 15,111, 51,111,
7,9, 60,107,
7,9, 60,107,
7,9, 60,107,
15,6, 51,6, 15,43, 51,43, 33,60, 15,77, 51,77, 15,111, 51,111,
15,6, 51,6, 33,33, 15,60, 51,60, 33,87, 15,111, 51,111,
15,6, 51,6, 33,33, 15,60, 51,60, 15,111, 51,111
}
#endif
;
EXTERN int smls[]
#ifdef XIO_C
=
{
2,23, 77,23, 2,105, 77,105
}
#endif
;
EXTERN int smlz[]
#ifdef XIO_C
=
{
4,16, 75,16, 4,112, 75,112
}
#endif
;
EXTERN int smlc[]
#ifdef XIO_C
=
{
6,5, 78,5, 6,126, 78,126
}
#endif
;
EXTERN int frm[2][9][2]
#ifdef XIO_C
=
{
{
{1,4},{1,3},{2,2},
{3,1},{4,1},{0,0},
{0,0},{0,0},{0,0}
},
{
{1,7},{1,6},{1,5},
{2,4},{3,3},{4,2},
{5,1},{6,1},{7,1}
}
}
#endif
;
EXTERN int ramp[4][6]
#ifdef XIO_C
=
{
{0, 70,100,150,180,255},
{0, 70,150,180,255,255},
{0, 70,180,255,255,255},
{0,180,255,255,255,255}
}
#endif
;
#endif /* XIO_H */