13 #include <linux/module.h>
14 #include <linux/string.h>
16 #include <linux/slab.h>
25 unsigned int scan_align = info->
pixmap.scan_align - 1;
26 unsigned int buf_align = info->
pixmap.buf_align - 1;
27 unsigned int i,
size, dsize, s_pitch, d_pitch;
34 s_pitch = (cursor->
image.width + 7) >> 3;
35 dsize = s_pitch * cursor->
image.height;
51 *image = cursor->
image;
52 d_pitch = (s_pitch + scan_align) & ~scan_align;
54 size = d_pitch * image->
height + buf_align;
59 switch (cursor->
rop) {
61 for (i = 0; i < dsize; i++)
62 src[i] = image->
data[i] ^ cursor->
mask[i];
66 for (i = 0; i < dsize; i++)
67 src[i] = image->
data[i] & cursor->
mask[i];
75 info->
fbops->fb_imageblit(info, image);