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.

50 lines
1.5 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: exclude.hxx
  3. *
  4. * Handles sprite exclusion.
  5. *
  6. * Created: 13-Sep-1990 16:29:44
  7. * Author: Charles Whitmer [chuckwh]
  8. *
  9. * Copyright (c) 1990-1999 Microsoft Corporation
  10. \**************************************************************************/
  11. /*********************************Class************************************\
  12. * DEVEXCLUDERECT
  13. *
  14. * Excludes any sprites from the given rectangular area.
  15. *
  16. * 16-Sep-1997 -by- J. Andrew Goossen [andrewgo]
  17. * Wrote it.
  18. \**************************************************************************/
  19. class DEVEXCLUDERECT
  20. {
  21. private:
  22. BOOL bUnTearDown;
  23. HDEV hdev;
  24. RECTL rcl;
  25. public:
  26. DEVEXCLUDERECT()
  27. {
  28. bUnTearDown = FALSE;
  29. }
  30. DEVEXCLUDERECT(HDEV _hdev, RECTL* _prcl)
  31. {
  32. vExclude(_hdev, _prcl);
  33. }
  34. VOID vExclude(HDEV _hdev, RECTL* _prcl)
  35. {
  36. hdev = _hdev;
  37. rcl = *_prcl;
  38. bUnTearDown = DxEngSpTearDownSprites(hdev, _prcl, FALSE);
  39. }
  40. ~DEVEXCLUDERECT()
  41. {
  42. if (bUnTearDown)
  43. DxEngSpUnTearDownSprites(hdev, &rcl, FALSE);
  44. }
  45. };