4 uint32_t checksum_rect_generic32(int x, int y, int width, int height) {
6 /* Generic checksum_rect function for video modes with 32-bit pixels
7 * (i.e. fb->curmode.bytestride = 4).
10 int scanline = fb->curmode.xres * 4;
16 for (i = 0; i < height; i++) {
17 lineaddr = (uint32_t *)(fb->fbaddr + (i + y) * scanline);
19 for (j = 0; j < width; j++) {
20 sum += lineaddr[j + x];
27 void copy_pixels_generic32(char *buf, int x, int y, int width, int height)
30 unsigned int *ibuf = (unsigned int *)buf;
32 for (cy = y; cy < (y + height); cy++)
34 fbuf = (unsigned int *)fb->fbaddr;
35 fbuf += y * (fb->curmode.xres) + x;
36 for (cx = x; cx < (x + width); cx++)
37 *(ibuf++) = *(fbuf++);