home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c185 / 2.ddi / OWLSRC.EXE / CSCAPE / SOURCE / PMAPOPEN.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-06  |  1.2 KB  |  53 lines

  1. /*
  2.     pmapopen.c
  3.  
  4.     % Pixel map Open requester code.
  5.  
  6.     5/16/88  by Ted.
  7.  
  8.     OWL 1.1
  9.     Copyright (c) 1988, by Oakland Group, Inc.
  10.     ALL RIGHTS RESERVED.
  11.  
  12.     Revision History:
  13.     -----------------
  14.      8/17/88 jmd      Removed  eNOMEM
  15.     11/02/88 ted:    Made pmap_clip functions calls to opwh_clip functions.
  16.     02/04/89 ted:    Moved real work down into dig level (dpmap_Control)
  17.     02/23/88 ted:    Added copy case.
  18.      5/09/89 ted    Changed Alloc/Free terms to Open/Close.
  19.      8/07/89 ted    Split some stuff out to pmapx.c.
  20. */
  21.  
  22. #include "oakhead.h"
  23. #include "disppriv.h"
  24. /* -------------------------------------------------------------------------- */
  25.  
  26. pmap_type pmap_OpenOnboard(width, height, onboard, onscreen, xpos, ypos)
  27.     odim width;
  28.     odim height;
  29.     boolean onboard;
  30.     boolean onscreen;
  31.     opcoord xpos;
  32.     opcoord ypos;
  33. /*
  34.     Allocates a pixel image map. Returns a pointer to it.
  35.     Returns NULL in case of failure.
  36. */
  37. {
  38.     pmap_type pmap;
  39.     pmapreq_struct pmapreq;
  40.  
  41.     pmapreq.width = width;
  42.     pmapreq.height = height;
  43.     pmapreq.onboard = onboard;
  44.     pmapreq.onscreen = onscreen;
  45.     pmapreq.xpos = xpos;
  46.     pmapreq.ypos = ypos;
  47.  
  48.     pmap_Control(PC_OPENPMAP, &pmapreq, &pmap);
  49.     return(pmap);
  50. }
  51. /* -------------------------------------------------------------------------- */
  52.  
  53.