home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d5xx / d500 / wiconify.lha / wIconify / wUtilities.lzh / wIconClock / wIconClockImage.c < prev   
C/C++ Source or Header  |  1991-04-19  |  2KB  |  74 lines

  1. /*
  2.  *  WICONCLOCK      A utility that works with WICONIFY to display a
  3.  *                  clock icon on every wIconify screen.  The clock face
  4.  *                  shows the current time, and updates as time passes.
  5.  *
  6.  *  Copyright 1990 by Davide P. Cervone, all rights reserved.
  7.  *  You may use this code, provided this copyright notice is kept intact.
  8.  */
  9.  
  10.  
  11. #include <exec/types.h>
  12.  
  13.  
  14. /*
  15.  *  The clock image size
  16.  */
  17.  
  18. #define CLOCKWIDTH       40
  19. #define CLOCKHEIGHT      19
  20. #define CLOCKDEPTH       2
  21. #define WORDSPERROW      3
  22.  
  23. /*
  24.  *  The clock image data.  It is the face with no hands, and includes
  25.  *  the 3D border around the edge.  The colors are chosen so that it
  26.  *  will still work even with only one bitplane.
  27.  */
  28.  
  29. USHORT ClockData[CLOCKDEPTH][CLOCKHEIGHT*WORDSPERROW] =
  30. {
  31.   {
  32.     0xFFFF, 0xFFFF, 0xFF00,
  33.     0xC000, 0x0000, 0x0300,
  34.     0xC000, 0xFF00, 0x0300,
  35.     0xC01F, 0xE7F8, 0x0300,
  36.     0xC0F9, 0xFF9F, 0x0300,
  37.     0xC3FF, 0xFFFF, 0xC300,
  38.     0xC73F, 0xFFFC, 0xE300,
  39.     0xCFFF, 0xFFFF, 0xF300,
  40.     0xCFFF, 0xFFFF, 0xF300,
  41.     0xC9FF, 0xFFFF, 0x9300,
  42.     0xCFFF, 0xFFFF, 0xF300,
  43.     0xCFFF, 0xFFFF, 0xF300,
  44.     0xC73F, 0xFFFC, 0xE300,
  45.     0xC3FF, 0xFFFF, 0xC300,
  46.     0xC0F9, 0xFF9F, 0x0300,
  47.     0xC01F, 0xE7F8, 0x0300,
  48.     0xC000, 0xFF00, 0x0300,
  49.     0xC000, 0x0000, 0x0300,
  50.     0xFFFF, 0xFFFF, 0xFF00,
  51.   },
  52.   {
  53.     0x0000, 0x0000, 0x0100,
  54.     0x3FFF, 0xFFFF, 0xFF00,
  55.     0x3FFF, 0x00FF, 0xFF00,
  56.     0x3FE0, 0x0007, 0xFF00,
  57.     0x3F00, 0x0000, 0xFF00,
  58.     0x3C00, 0x0000, 0x3F00,
  59.     0x3800, 0x0000, 0x1F00,
  60.     0x3000, 0x0000, 0x0F00,
  61.     0x3000, 0x0000, 0x0F00,
  62.     0x3000, 0x0000, 0x0F00,
  63.     0x3000, 0x0000, 0x0F00,
  64.     0x3000, 0x0000, 0x0F00,
  65.     0x3800, 0x0000, 0x1F00,
  66.     0x3C00, 0x0000, 0x3F00,
  67.     0x3F00, 0x0000, 0xFF00,
  68.     0x3FE0, 0x0007, 0xFF00,
  69.     0x3FFF, 0x00FF, 0xFF00,
  70.     0x3FFF, 0xFFFF, 0xFF00,
  71.     0x7FFF, 0xFFFF, 0xFF00,
  72.   },
  73. };
  74.