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);
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 = y; cy < (y + height); cy++)
33 fbuf = (unsigned int *)fb->fbaddr;
34 fbuf += cy * (fb->curmode.xres) + x;
35 for (cx = x; cx < (x + width); cx++)
36 *(ibuf++) = *(fbuf++);