| 67 | |
| 68 | |
| 69 | void initBuf(int x, int y, int width, int pitch, int height, PF *pf, |
| 70 | unsigned char *buf, int offset) |
| 71 | { |
| 72 | int i, j; |
| 73 | |
| 74 | for(j = 0; j < height; j++) |
| 75 | { |
| 76 | for(i = 0; i < width; i++) |
| 77 | pf->setRGB(&buf[j * pitch + i * pf->size], (i + x + offset) % MAXRGB, |
| 78 | (j + y + offset) % MAXRGB, (j + y + i + x + offset) % MAXRGB); |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | |
| 83 | int cmpBuf(int x, int y, int width, int pitch, int height, PF *pf, |
no outgoing calls
no test coverage detected