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.2 KiB

  1. /*==========================================================================;
  2. *
  3. * Copyright (C) 1995 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: halscene.c
  6. * Content: Direct3D HAL scene capture
  7. *@@BEGIN_MSINTERNAL
  8. *
  9. * History:
  10. * Date By Reason
  11. * ==== == ======
  12. * 07/12/95 stevela Initial rev.
  13. *@@END_MSINTERNAL
  14. *
  15. ***************************************************************************/
  16. #include "pch.cpp"
  17. #pragma hdrstop
  18. HRESULT D3DHAL_SceneCapture(LPDIRECT3DDEVICEI lpDevI,
  19. BOOL bState)
  20. {
  21. D3DHAL_SCENECAPTUREDATA data;
  22. HRESULT ret;
  23. if (!lpDevI->lpD3DHALCallbacks->SceneCapture) {
  24. return (D3D_OK);
  25. }
  26. D3D_INFO(6, "SceneCapture, setting %d dwhContext = %d",
  27. bState, lpDevI->dwhContext);
  28. memset(&data, 0, sizeof(D3DHAL_SCENECAPTUREDATA));
  29. data.dwhContext = lpDevI->dwhContext;
  30. data.dwFlag = bState ? D3DHAL_SCENE_CAPTURE_START : D3DHAL_SCENE_CAPTURE_END;
  31. CALL_HALONLY(ret, lpDevI, SceneCapture, &data);
  32. if (ret != DDHAL_DRIVER_HANDLED || data.ddrval != DD_OK) {
  33. D3D_ERR("HAL failed to handle SceneCapture");
  34. return (data.ddrval);
  35. }
  36. return (D3D_OK);
  37. }