home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / new / util / cdity / colorsaver / src / pointer.h < prev    next >
C/C++ Source or Header  |  1994-11-28  |  3KB  |  70 lines

  1. #define POINTER_REGISTER 16
  2.  
  3. #define CS_PTR_WIDTH    13
  4. #define CS_PTR_HEIGHT    9
  5. #define CS_PTR_XOFF     -1
  6. #define CS_PTR_YOFF      0
  7.  
  8. #define CSTO_PTR_WIDTH    13
  9. #define CSTO_PTR_HEIGHT   15
  10. #define CSTO_PTR_XOFF     -1
  11. #define CSTO_PTR_YOFF      0
  12.  
  13. struct PointerColors
  14. {
  15.     SHORT colorreg;
  16.     UBYTE red;
  17.     UBYTE green;
  18.     UBYTE blue;
  19.     LONG reset;
  20.     };
  21.  
  22. struct PointerColors PointerColor[] = {
  23.                                      { POINTER_REGISTER+0, 0, 0, 0, 0 },
  24.                                      { POINTER_REGISTER+1,14, 4, 4, 0 },
  25.                                      { POINTER_REGISTER+2, 0, 0, 0, 0 },
  26.                                      { POINTER_REGISTER+3,15,15, 3, 0 }
  27.                    };
  28.  
  29. __chip USHORT CSPointer[] = 
  30.    {
  31.    0x0000, 0x0000, /* position control */
  32.  
  33.    0x8000,   0x8000,    /* #............... */    /* #............... */
  34.    0xe000,   0x6000,    /* .##............. */    /* ###............. */
  35.    0x7800,   0xb800,    /* #.###........... */    /* .####........... */
  36.    0x3e00,   0x5e00,    /* .#.####......... */    /* ..#####......... */
  37.    0x1f80,   0x2f80,    /* ..#.#####....... */    /* ...######....... */
  38.    0x0fe0,   0x17e0,    /* ...#.######..... */    /* ....#######..... */
  39.    0x07f8,   0x0bf8,    /* ....#.#######... */    /* .....########... */
  40.    0x03f8,   0x0400,    /* .....#.......... */    /* ......#######... */
  41.    0x0000,   0x03f8,    /* ......#######... */    /* ................ */
  42.  
  43.    0x0000, 0x0000 /* next sprite field */
  44.  
  45.    };
  46.  
  47.  
  48. __chip USHORT CSToPointer[] = 
  49.    {
  50.    0x0000, 0x0000, /* position control */
  51.  
  52.    0x8000,   0x8000,    /* #............... */    /* #............... */
  53.    0xe000,   0x6000,    /* .##............. */    /* ###............. */
  54.    0x7800,   0xb800,    /* #.###........... */    /* .####........... */
  55.    0x3e00,   0x5e00,    /* .#.####......... */    /* ..#####......... */
  56.    0x1f80,   0x2f80,    /* ..#.#####....... */    /* ...######....... */
  57.    0x0fe0,   0x17e0,    /* ...#.######..... */    /* ....#######..... */
  58.    0x07f8,   0x0bf8,    /* ....#.#######... */    /* .....########... */
  59.    0x03f8,   0x0400,    /* .....#.......... */    /* ......#######... */
  60.    0x0000,   0x03f8,    /* ......#######... */    /* ................ */
  61.    0x0000,   0x0000,    /* ................ */    /* ................ */
  62.    0x3cf8,   0x3ef8,    /* ..#####.#####... */    /* ..####..#####... */
  63.    0x1110,   0x1998,    /* ...##..##..##... */    /* ...#...#...#.... */
  64.    0x2220,   0x3330,    /* ..##..##..##.... */    /* ..#...#...#..... */
  65.    0x4440,   0x6660,    /* .##..##..##..... */    /* .#...#...#...... */
  66.    0x8780,   0xc7c0,    /* ##...#####...... */    /* #....####....... */
  67.  
  68.    0x0000, 0x0000 /* next sprite field */
  69.    };
  70.