home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / Samples / CSAPE32.ARJ / SOURCE / OWLSCR / PMAPOPEN.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-03-28  |  1.2 KB  |  49 lines

  1. /*
  2.     pmapopen.c
  3.  
  4.     % Pixel map Open requester code.
  5.  
  6.     5/16/88  by Ted.
  7.  
  8.     OWL 1.2
  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.      2/04/89 ted    Moved real work down into dig level (dpmap_Control)
  17.      2/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.      3/28/90 jmd    ansi-fied
  22. */
  23.  
  24. #include "oakhead.h"
  25. #include "disppriv.h"
  26. /* -------------------------------------------------------------------------- */
  27.  
  28. pmap_type pmap_OpenOnboard(odim width, odim height, boolean onboard, boolean onscreen, opcoord xpos, opcoord ypos)
  29. /*
  30.     Allocates a pixel image map. Returns a pointer to it.
  31.     Returns NULL in case of failure.
  32. */
  33. {
  34.     pmap_type pmap;
  35.     pmapreq_struct pmapreq;
  36.  
  37.     pmapreq.width = width;
  38.     pmapreq.height = height;
  39.     pmapreq.onboard = onboard;
  40.     pmapreq.onscreen = onscreen;
  41.     pmapreq.xpos = xpos;
  42.     pmapreq.ypos = ypos;
  43.  
  44.     pmap_Control(PC_OPENPMAP, &pmapreq, &pmap);
  45.     return(pmap);
  46. }
  47. /* -------------------------------------------------------------------------- */
  48.  
  49.