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.

44 lines
1.1 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: CQuality.cpp
  3. *
  4. * This file contains the code to support the functionality test harness
  5. * for GDI+. This includes menu options and calling the appropriate
  6. * functions for execution.
  7. *
  8. * Created: 05-May-2000 - Jeff Vezina [t-jfvez]
  9. *
  10. * Copyright (c) 2000 Microsoft Corporation
  11. *
  12. \**************************************************************************/
  13. #include "CQuality.h"
  14. CQuality::CQuality(BOOL bRegression)
  15. {
  16. strcpy(m_szName,"Quality");
  17. m_bRegression=bRegression;
  18. }
  19. CQuality::~CQuality()
  20. {
  21. }
  22. void CQuality::Set(Graphics *g)
  23. {
  24. g->SetCompositingQuality(m_bUseSetting ? CompositingQualityHighQuality : CompositingQualityHighSpeed);
  25. }
  26. CCompositingMode::CCompositingMode(BOOL bRegression)
  27. {
  28. strcpy(m_szName,"Source Copy");
  29. m_bRegression=bRegression;
  30. }
  31. CCompositingMode::~CCompositingMode()
  32. {
  33. }
  34. void CCompositingMode::Set(Graphics *g)
  35. {
  36. g->SetCompositingMode(m_bUseSetting ? CompositingModeSourceCopy : CompositingModeSourceOver);
  37. }