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.

39 lines
1.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: ddgammacontrolobj.cpp
  8. //
  9. //--------------------------------------------------------------------------
  10. // dDrawGammaControlObj.cpp : Implementation of CDirectApp and DLL registration.
  11. // DHF_DS entire file
  12. #include "stdafx.h"
  13. #include "Direct.h"
  14. #include "dms.h"
  15. #include "dDraw7Obj.h"
  16. #include "ddGammaControlObj.h"
  17. extern void *g_dxj_DirectDrawGammaControl;
  18. CONSTRUCTOR(_dxj_DirectDrawGammaControl, {});
  19. DESTRUCTOR(_dxj_DirectDrawGammaControl, {});
  20. GETSET_OBJECT(_dxj_DirectDrawGammaControl);
  21. STDMETHODIMP C_dxj_DirectDrawGammaControlObject::getGammaRamp(long flags, DDGammaRamp *gammaRamp)
  22. {
  23. HRESULT hr = DD_OK;
  24. hr=m__dxj_DirectDrawGammaControl->GetGammaRamp((DWORD) flags,(DDGAMMARAMP*)gammaRamp);
  25. return hr;
  26. }
  27. STDMETHODIMP C_dxj_DirectDrawGammaControlObject::setGammaRamp(long flags, DDGammaRamp *gammaRamp)
  28. {
  29. HRESULT hr = DD_OK;
  30. hr=m__dxj_DirectDrawGammaControl->SetGammaRamp((DWORD) flags,(DDGAMMARAMP*)gammaRamp);
  31. return hr;
  32. }