Lines Matching refs:cursor

25  * (proper acceleration, 24 bpp, hardware cursor) and bug fixes by Attila
1059 static int tdfxfb_cursor(struct fb_info *info, struct fb_cursor *cursor)
1067 /* Too large of a cursor or wrong bpp :-( */
1068 if (cursor->image.width > 64 ||
1069 cursor->image.height > 64 ||
1070 cursor->image.depth > 1)
1074 if (cursor->enable)
1080 * If the cursor is not be changed this means either we want the
1081 * current cursor state (if enable is set) or we want to query what
1082 * we can do with the cursor (if enable is not set)
1084 if (!cursor->set)
1087 /* fix cursor color - XFree86 forgets to restore it properly */
1088 if (cursor->set & FB_CUR_SETCMAP) {
1090 u32 bg_idx = cursor->image.bg_color;
1091 u32 fg_idx = cursor->image.fg_color;
1105 if (cursor->set & FB_CUR_SETPOS) {
1106 int x = cursor->image.dx;
1107 int y = cursor->image.dy - info->var.yoffset;
1114 if (cursor->set & (FB_CUR_SETIMAGE | FB_CUR_SETSHAPE)) {
1116 * Voodoo 3 and above cards use 2 monochrome cursor patterns.
1120 * cursor for each screen refresh.
1126 * the cursor image the graphics card uses then from the
1129 * etc etc. The linear stride for the cursor is always 16 bytes
1130 * (128 bits) which is the maximum cursor width times two for
1134 u8 *bitmap = (u8 *)cursor->image.data;
1135 u8 *mask = (u8 *)cursor->mask;
1140 for (i = 0; i < cursor->image.height; i++) {
1142 int j = (cursor->image.width + 7) >> 3;
1146 if (cursor->rop == ROP_COPY)
1148 /* Pattern 0. Copy the cursor mask to it */
1151 /* Pattern 1. Copy the cursor bitmap to it */
1496 /* reserve 8192 bits for cursor */
1679 MODULE_PARM_DESC(hwcursor, "Enable hardware cursor "