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.

30 lines
787 B

  1. /******************************Module*Header*******************************\
  2. * Module Name: CAntialias.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 "CHalfPixel.h"
  14. CHalfPixel::CHalfPixel(BOOL bRegression)
  15. {
  16. strcpy(m_szName,"Half Pixel Offset");
  17. m_bRegression=bRegression;
  18. }
  19. CHalfPixel::~CHalfPixel()
  20. {
  21. }
  22. void CHalfPixel::Set(Graphics *g)
  23. {
  24. g->SetPixelOffsetMode(
  25. m_bUseSetting ? PixelOffsetModeHalf : PixelOffsetModeNone
  26. );
  27. }