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.

95 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name
  4. alpha.cxx
  5. Abstract:
  6. alpha blending functions
  7. Author:
  8. Mark Enstrom (marke) 23-Jun-1996
  9. Enviornment:
  10. User Mode
  11. Revision History:
  12. --*/
  13. #include "precomp.hxx"
  14. #pragma hdrstop
  15. extern "C" {
  16. BOOL
  17. NtGdiAlphaBlt(
  18. HDC,
  19. LONG,
  20. LONG,
  21. LONG,
  22. LONG,
  23. HDC,
  24. LONG,
  25. LONG,
  26. LONG,
  27. LONG,
  28. ULONG);
  29. }
  30. BOOL
  31. GdxAlphaBlt(
  32. HDC hdcDest,
  33. LONG DstX,
  34. LONG DstY,
  35. LONG DstCx,
  36. LONG DstCy,
  37. HANDLE hSrc,
  38. LONG SrcX,
  39. LONG SrcY,
  40. LONG SrcCx,
  41. LONG SrcCy,
  42. ULONG fAlpha
  43. )
  44. {
  45. BOOL bRet = FALSE;
  46. FIXUP_HANDLE(hdcDest);
  47. FIXUP_HANDLE(hSrc);
  48. //
  49. // metafile
  50. //
  51. //
  52. // emultation
  53. //
  54. //
  55. // Direct Drawing
  56. //
  57. #if 1
  58. bRet = NtGdiAlphaBlt(
  59. hdcDest,
  60. DstX,
  61. DstY,
  62. DstCx,
  63. DstCy,
  64. (HDC)hSrc,
  65. SrcX,
  66. SrcY,
  67. SrcCx,
  68. SrcCy,
  69. fAlpha );
  70. #endif
  71. return(bRet);
  72. }