… | |
… | |
46 | |
46 | |
47 | /*typedef struct obj *Object;*/ |
47 | /*typedef struct obj *Object;*/ |
48 | |
48 | |
49 | /* temporary kludge */ |
49 | /* temporary kludge */ |
50 | |
50 | |
51 | extern object *MapGetObjectZ (Map, int, int, int); |
|
|
52 | extern object *MapGetRealObject (Map, int, int, int); |
|
|
53 | #if 0 |
|
|
54 | extern void MapInsertObjectZ(Map,object *, int, int, int); |
|
|
55 | #endif |
|
|
56 | extern void InitializeColors (Display *dpy); |
|
|
57 | extern object *object_create_arch (archetype *); |
|
|
58 | |
|
|
59 | extern XColor discolor[]; |
51 | extern XColor discolor[]; |
60 | |
52 | |
61 | void CrEditSelect(Widget w,XRectangle rect); |
53 | void CrEditSelect(Widget w,XRectangle rect); |
62 | |
|
|
63 | #define XDRAWIMAGESTRING(disp,win,gc,x,y,str,len) \ |
|
|
64 | XDrawImageString16(disp,win,gc,x,y,str,len) |
|
|
65 | #define FontindexToXChar(s) fontindex_to_XChar2b(s) |
|
|
66 | #define XCharToFontindex(s) ((Fontindex) ((s).byte1*256 + (s).byte2)) |
|
|
67 | |
|
|
68 | #ifndef XChar2b |
|
|
69 | typedef XChar2b XChar; |
|
|
70 | #endif |
|
|
71 | |
54 | |
72 | enum DisplayMode {Dm_Png}; |
55 | enum DisplayMode {Dm_Png}; |
73 | |
56 | |
74 | /* Useful macro */ |
57 | /* Useful macro */ |
75 | #define HAS_COLOUR(widg) (PlanesOfScreen(XtScreen(widg)) > 1) |
58 | #define HAS_COLOUR(widg) (PlanesOfScreen(XtScreen(widg)) > 1) |