Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.2 KiB

  1. //
  2. // Palette Manager
  3. //
  4. #ifndef _H_PM
  5. #define _H_PM
  6. //
  7. //
  8. // CONSTANTS
  9. //
  10. //
  11. //
  12. // The number of true greys we want a true color system to deliver from a
  13. // GetDIBits call. To vary this (number of greys and/or grey RGBs)
  14. // - alter the number defined for PM_GREY_COUNT below
  15. // - define suitable values for the grey RGBs below (PM_LIGHT_GREY, etc)
  16. // - change the initialisers for pmOurGreyRGB in wpmdata.c
  17. // - recompile the entire PM component.
  18. //
  19. #define PM_GREY_COUNT 5
  20. //
  21. // Grey RGBs passed into the true color display driver for conversion to
  22. // a driver representation via an 8bpp GetDIBits.
  23. //
  24. #define PM_GREY1 0x00C0C0C0
  25. #define PM_GREY2 0x00808080
  26. #define PM_GREY3 0x006a6a6a
  27. #define PM_GREY4 0x00555555
  28. #define PM_GREY5 0x00333333
  29. #define PM_NUM_1BPP_PAL_ENTRIES 2
  30. #define PM_NUM_4BPP_PAL_ENTRIES 16
  31. #define PM_NUM_8BPP_PAL_ENTRIES 256
  32. #define PM_NUM_TRUECOLOR_PAL_ENTRIES 0
  33. //
  34. // The color table cache structure
  35. //
  36. typedef struct tagCOLORTABLECACHE
  37. {
  38. BOOL inUse;
  39. UINT cColors;
  40. TSHR_RGBQUAD colors[256];
  41. }
  42. COLORTABLECACHE;
  43. typedef COLORTABLECACHE * PCOLORTABLECACHE;
  44. #endif // _H_PM