home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_11_08 / weber / display.h < prev    next >
Text File  |  1993-03-13  |  1KB  |  33 lines

  1. /***************************************************************
  2.  * file: DISPLAY.H
  3.  * purpose: prototypes and defines for display.c
  4.  * copyright: 1993 by David Weber.  All rights reserved.
  5.  *  This software can be used for any purpose as object, library or executable.
  6.  *  It cannot be sold for profit as source code.
  7.  * history:
  8.  *  02-26-93 - initial code
  9.  **************************************************************/
  10.  
  11. /* definitions */
  12. #define PCX_READ_BUFFER 16384       /* PCX file buffer */
  13. #define DISPLAY_BUFFER_SIZE 16384   /* one of an array of display buffers */
  14. #define MAX_DISPLAY_BUFFERS 64      /* enough for a 1024 by 1024 picture */
  15. #define I_LOVE_BLACK 1              /* black enhanced scaling */
  16. #define IDEAL_SCREEN_ASPECT 133     /* expected screen aspect ratio = 1.33, fixed point */
  17.  
  18. /* types */
  19. typedef struct { short x,y,width,height; } DISPLAY_BOX;
  20. typedef struct numbox
  21.     {
  22.     short x,y,width,height;
  23.     struct numbox *next;
  24.     } NUMBERED_BOX;
  25.  
  26. /* prototypes */
  27. int display_file(char *filename);
  28. void display_free(void);
  29. unsigned char *display_sample(int *samplex,int *sampley,int *dx,int *dy);
  30. void display_numbered_box(int x1,int y1,int x2,int y2,int num);
  31. void display_numbered_box_close(void);
  32. int display_redraw(void);
  33.