Lines Matching defs:cursor

26  * (proper acceleration, 24 bpp, hardware cursor) and bug fixes by Attila
1040 static int tdfxfb_cursor(struct fb_info *info, struct fb_cursor *cursor)
1048 /* Too large of a cursor or wrong bpp :-( */
1049 if (cursor->image.width > 64 ||
1050 cursor->image.height > 64 ||
1051 cursor->image.depth > 1)
1055 if (cursor->enable)
1061 * If the cursor is not be changed this means either we want the
1062 * current cursor state (if enable is set) or we want to query what
1063 * we can do with the cursor (if enable is not set)
1065 if (!cursor->set)
1068 /* fix cursor color - XFree86 forgets to restore it properly */
1069 if (cursor->set & FB_CUR_SETCMAP) {
1071 u32 bg_idx = cursor->image.bg_color;
1072 u32 fg_idx = cursor->image.fg_color;
1086 if (cursor->set & FB_CUR_SETPOS) {
1087 int x = cursor->image.dx;
1088 int y = cursor->image.dy - info->var.yoffset;
1095 if (cursor->set & (FB_CUR_SETIMAGE | FB_CUR_SETSHAPE)) {
1097 * Voodoo 3 and above cards use 2 monochrome cursor patterns.
1101 * cursor for each screen refresh.
1107 * the cursor image the graphics card uses then from the
1110 * etc etc. The linear stride for the cursor is always 16 bytes
1111 * (128 bits) which is the maximum cursor width times two for
1115 u8 *bitmap = (u8 *)cursor->image.data;
1116 u8 *mask = (u8 *)cursor->mask;
1121 for (i = 0; i < cursor->image.height; i++) {
1123 int j = (cursor->image.width + 7) >> 3;
1127 if (cursor->rop == ROP_COPY)
1129 /* Pattern 0. Copy the cursor mask to it */
1132 /* Pattern 1. Copy the cursor bitmap to it */
1478 /* reserve 8192 bits for cursor */
1659 MODULE_PARM_DESC(hwcursor, "Enable hardware cursor "