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.

36 lines
914 B

  1. //----------------------------------------------------------------------------
  2. //
  3. // rgbmap.h
  4. //
  5. // Structures and prototypes for rgb colormap code.
  6. //
  7. // Copyright (C) Microsoft Corporation, 1997.
  8. //
  9. //----------------------------------------------------------------------------
  10. #ifndef _RGBMAP_H_
  11. #define _RGBMAP_H_
  12. #include "colall.h"
  13. typedef struct _RLDDIRGBMap {
  14. unsigned long red_mask;
  15. unsigned long green_mask;
  16. unsigned long blue_mask;
  17. int red_shift;
  18. int green_shift;
  19. int blue_shift;
  20. /*
  21. * A color allocator for use with RLDDIColormap.
  22. */
  23. RLDDIColorAllocator alloc;
  24. } RLDDIRGBMap;
  25. RLDDIRGBMap* RLDDICreateRGBMap(unsigned long red_mask,
  26. unsigned long green_mask,
  27. unsigned long blue_mask);
  28. void RLDDIDestroyRGBMap(RLDDIRGBMap* rgbmap);
  29. #endif // _RGBMAP_H_