1 | /* |
1 | /* |
2 | * static char *rcsid_xutil_c = |
2 | * static char *rcsid_xutil_c = |
3 | * "$Id: xutil.c,v 1.1 2006/02/03 07:11:45 root Exp $"; |
3 | * "$Id: xutil.c,v 1.2 2006/05/07 08:19:29 pippijn Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
39 | #endif |
39 | #endif |
40 | |
40 | |
41 | #include <Defines.h> |
41 | #include <Defines.h> |
42 | #include <funcpoint.h> |
42 | #include <funcpoint.h> |
43 | #include <loader.h> |
43 | #include <loader.h> |
44 | |
|
|
45 | /* |
|
|
46 | * Converts between Fontindex and XChar2b types. |
|
|
47 | * Used in global.h, for draw_face (in face, FontindextoXChars |
|
|
48 | * is defined to this function name |
|
|
49 | */ |
|
|
50 | |
|
|
51 | XChar2b fontindex_to_XChar2b(Fontindex s) |
|
|
52 | { |
|
|
53 | XChar2b c; |
|
|
54 | |
|
|
55 | c.byte1 = s/256; |
|
|
56 | c.byte2 = s%256; |
|
|
57 | |
|
|
58 | return c; |
|
|
59 | } |
|
|
60 | |
|
|
61 | |
44 | |
62 | #define IMAGE_BUF 65536 |
45 | #define IMAGE_BUF 65536 |
63 | |
46 | |
64 | /* |
47 | /* |
65 | * ReadPixmaps(): When color pixmaps are used instead of fonts, this function |
48 | * ReadPixmaps(): When color pixmaps are used instead of fonts, this function |