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.

71 lines
2.1 KiB

  1. #include <ifaxos.h>
  2. #include <resexec.h>
  3. #include "constant.h"
  4. #include "jtypes.h" // type definition used in cartridge
  5. #include "jres.h" // cartridge resource data type definition
  6. #include "hretype.h" // define data structure used by hre.c and rpgen.c
  7. //==============================================================================
  8. BOOL OpenBlt (LPRESTATE lpRE, UINT yBrush)
  9. {
  10. lpRE->usBrushWidth = 0;
  11. return TRUE;
  12. }
  13. //==============================================================================
  14. void CloseBlt (LPRESTATE lpRE)
  15. {
  16. }
  17. //==============================================================================
  18. BOOL SetBrush (LPRESTATE lpRE)
  19. {
  20. lpRE->usBrushWidth = 0;
  21. return TRUE;
  22. }
  23. //==============================================================================
  24. DWORD FAR PASCAL HREBitBlt
  25. (
  26. LPVOID PRT_FrameStart,
  27. LPVOID lpgBrush,
  28. WORD PRT_BytesPerScanLine,
  29. WORD usBrushWidth,
  30. WORD PRT_Max_X,
  31. WORD PRT_Max_Y,
  32. WORD usgPosOff,
  33. WORD xSrc, // Left padding
  34. short yDst, // Top row of destination.
  35. short xDst, // Left column of destination.
  36. WORD clLine, // Longs per scan line
  37. WORD yExt, // Height in pixels
  38. WORD xExt, // Width in pixels
  39. LPDWORD lpSrc, // Far pointer to source
  40. LPDWORD lpPat, // Far pointer to pattern
  41. DWORD dwRop // Raster operation
  42. );
  43. DWORD FAR PASCAL RP_BITMAP1TO1
  44. (
  45. LPRESTATE lpRE,
  46. WORD xSrc, // Left padding
  47. short yDst, // Top row of destination.
  48. short xDst, // Left column of destination.
  49. WORD clLine, // Longs per scan line
  50. WORD yExt, // Height in pixels
  51. WORD xExt, // Width in pixels
  52. LPDWORD lpSrc, // Far pointer to source
  53. LPDWORD lpPat, // Far pointer to pattern
  54. DWORD dwRop // Raster operation
  55. )
  56. {
  57. LPBITMAP lpbmBand = lpRE->lpBandBuffer;
  58. return HREBitBlt
  59. (
  60. lpbmBand->bmBits, lpRE->lpBrushBuf, lpbmBand->bmWidthBytes,
  61. lpRE->usBrushWidth, lpbmBand->bmWidth, lpbmBand->bmHeight, lpRE->yPat,
  62. xSrc, yDst, xDst, clLine, yExt, xExt, lpSrc, lpPat, dwRop
  63. );
  64. }