5 uint32_t checksum_rect_generic32(int x, int y, int width, int height) {
7 /* Generic checksum_rect function for video modes with 32-bit pixels
8 * (i.e. fb->curmode.bytestride = 4).
11 int scanline = fb->curmode.xres * 4;
12 unsigned char * lineaddr;
17 for (i = 0; i < height; i++) {
18 lineaddr = fb->fbaddr + (i + y) * scanline + (4 * x);
20 sum = crc32(lineaddr, width * 4, sum);
26 void copy_pixels_generic32(char *buf, int x, int y, int width, int height)
29 unsigned int *ibuf = (unsigned int *)buf;
31 for (cy = 0; cy < height; cy++)
33 fbuf = (unsigned int *)fb->fbaddr;
34 fbuf += (cy + y) * (fb->curmode.xres) + x;
35 for (cx = 0; cx < width; cx++)
36 *(ibuf++) = *(fbuf++);