Source code of Windows XP (NT5)
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.

33 lines
985 B

  1. /******************************Module*Header*******************************\
  2. * Module Name: paint.c
  3. *
  4. * Copyright (c) 1992-1995 Microsoft Corporation
  5. *
  6. \**************************************************************************/
  7. #include "precomp.h"
  8. /******************************Public*Routine******************************\
  9. * BOOL DrvPaint
  10. *
  11. \**************************************************************************/
  12. BOOL DrvPaint(
  13. SURFOBJ* pso,
  14. CLIPOBJ* pco,
  15. BRUSHOBJ* pbo,
  16. POINTL* pptlBrush,
  17. MIX mix)
  18. {
  19. ROP4 rop4;
  20. rop4 = ((MIX) gaRop3FromMix[mix >> 8] << 8) | gaRop3FromMix[mix & 0xf];
  21. // Since our DrvFillPath routine handles almost all fills, DrvPaint
  22. // won't get called all that much (mainly via PaintRgn, FillRgn, or
  23. // complex clipped polygons). As such, we save some code and simply
  24. // punt to DrvBitBlt:
  25. return(DrvBitBlt(pso, NULL, NULL, pco, NULL, &pco->rclBounds, NULL,
  26. NULL, pbo, pptlBrush, rop4));
  27. }