|
|
1.1 root 1: #include <X/mit-copyright.h>
2:
3: /* $Header: XStoreBitmap.c,v 10.5 86/02/01 15:39:52 tony Rel $ */
4: /* Copyright Massachusetts Institute of Technology 1985 */
5:
6: #include "XlibInternal.h"
7: Bitmap XStoreBitmap (width, height, data)
8: int width, height;
9: short *data;
10: {
11: register Display *dpy;
12: register XReq *req;
13: XRep rep;
14: int len;
15:
16: GetReq(X_StoreBitmap, 0);
17: req->param.s[0] = height;
18: req->param.s[1] = width;
19: len = BitmapSize (width, height);
20: Data(dpy, (char *)data, len);
21: if (!_XReply(dpy, &rep))
22: return(NULL);
23: return (rep.param.l[0]);
24: }
25:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.