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.

32 lines
983 B

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