home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c011 / 1.ddi / CLIPPER / FXPC_C.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-06-01  |  1.7 KB  |  79 lines

  1. /* fxPC_c.C                                                                 */
  2. /* Copyright (c) Genus Microprogramming, Inc. 1988-89  All Rights Reserved. */
  3.  
  4. /****************************************************************************
  5.  
  6.   This file provides the Clipper interface to PCX Effects.             
  7.   It makes calls to the PCX LARGE model C library.
  8.  
  9.  
  10.   NOTE: Compile as "CL /c /W3 /AL /Zl /Oalt /FPa /Gs fxPC_c.C"
  11.         as per the Clipper documentation for the EXTEND system
  12.  
  13.   Microsoft C version 5.1                 Programmer: Chris Howard  5/08/89
  14.  
  15. *****************************************************************************/
  16.  
  17. #include <stdio.h>
  18.  
  19. #include "..\h\nandef.h"
  20. #include "..\h\extend.h"
  21. #include "..\h\pcxlib.h"
  22. #include "..\h\fxlib.h"
  23. #include "..\h\fxclip.h"
  24.  
  25. /**********/
  26.  
  27. CLIPPER fxPC()
  28.  
  29. /*
  30.  * retcode = fxPaletteCycle(char *palptr;int start,total,rep,delay);
  31.  *
  32.  */
  33.  
  34. {
  35.   int  retcode;
  36.  
  37.   /* Verify parameters */
  38.   if (PCOUNT == 5) {
  39.     /* Pass call on to toolkit */
  40.     retcode = fxPaletteCycle(_parc(1),_parni(2),_parni(3),_parni(4),_parni(5));
  41.   }
  42.   else {
  43.     /* Error in parameter list */
  44.     retcode = fxERR_CLIPPARM;
  45.   }
  46.  
  47.   /* Return code to Clipper */
  48.   _retni(retcode);
  49.  
  50. } /* end of fxPC */
  51.  
  52. /**********/
  53.  
  54. CLIPPER fxPF()
  55.  
  56. /*
  57.  * retcode = fxPaletteFade(char *palptr;int start,total,inc,rep,delay);
  58.  *
  59.  */
  60.  
  61. {
  62.   int  retcode;
  63.  
  64.   /* Verify parameters */
  65.   if (PCOUNT == 6) {
  66.     /* Pass call on to toolkit */
  67.     retcode = fxPaletteFade(_parc(1),_parni(2),_parni(3),_parni(4),_parni(5),_parni(6));
  68.   }
  69.   else {
  70.     /* Error in parameter list */
  71.     retcode = fxERR_CLIPPARM;
  72.   }
  73.  
  74.   /* Return code to Clipper */
  75.   _retni(retcode);
  76.  
  77. } /* end of fxPF */
  78.  
  79.