|
|
1.1 root 1: /* fill.c Perform a simple raster operation a section of the screen
2: *
3: * PixFill Do a function on the screen
4: *
5: * Modification History
6: *
7: * Carver 8510.25 Removed error checking in calls to copyrmsk
8: * and copybmsk. No errors are ever return.
9: *
10: */
11:
12: #include "ddxqvss.h"
13: #include "qvss.h"
14: #include "vstagbl.h"
15:
16: extern BITMAP pbm;
17:
18: /*ARGSUSED*/
19: PixFill (srcpix, xymask, dstx, dsty, width, height, clips, clipcount,
20: func, zmask)
21: int srcpix, dstx, dsty, width, height, clipcount, zmask;
22: register BITMAP *xymask;
23: register int func;
24: CLIP *clips;
25: {
26: int constant = srcpix & 1;
27:
28: if (!(zmask & 1)) {
29: return;
30: }
31: if (xymask == 0)
32: {
33: copyrmsk (VSTA$K_SRC_CONST, constant, 0, 0, 0, 0,
34: width, height, (short *) pbm.data,
35: pbm.width, pbm.height, dstx, dsty, func,
36: clipcount, clips);
37: return;
38: }
39:
40: copybmsk (VSTA$K_SRC_CONST, constant, 0, 0, 0, 0,
41: (short *) xymask->data, xymask->width,
42: xymask->height, 0, 0, width, height,
43: (short *) pbm.data,
44: pbm.width, pbm.height, dstx, dsty, func,
45: clipcount, clips);
46: return;
47: }
48:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.