1: #include <X/mit-copyright.h>
   2: 
   3: /* $Header: XPixmapGetXY.c,v 10.5 86/02/01 15:38:13 tony Rel $ */
   4: /* Copyright    Massachusetts Institute of Technology    1985	*/
   5: 
   6: #include "XlibInternal.h"
   7: Status XPixmapGetXY (w, x, y, width, height, data)
   8:     Window w;
   9:     int x, y, width, height;
  10:     short *data;
  11: {
  12:     register Display *dpy;
  13:     register XReq *req;
  14:     XRep rep;
  15: 
  16:     GetReq (X_PixmapGet, w);
  17:     req->func = XYFormat;
  18:     req->param.s[0] = height;
  19:     req->param.s[1] = width;
  20:     req->param.s[2] = x;
  21:     req->param.s[3] = y;
  22:     if (!_XReply (dpy, &rep))
  23:         return(0);
  24:     _XReadPad (dpy, (char *)data, XYPixmapSize (width, height, dpy->dplanes));
  25:     return (1);
  26: }
Last modified: 1986-02-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 795
Valid CSS Valid XHTML 1.0 Strict