Lines Matching defs:cursor
19 * The hardware cursor definition requires 2 bits per pixel. The
20 * Cursor size reguardless of the visible cursor size is 64 pixels
21 * by 64 lines. The total memory required to define the cursor is
23 * must be in a contigiuos format. The 2 bit cursor code values are
45 * cursor is specificed by CURS_HORZ_VERT_POSN. Care must be taken
46 * when the cursor hot spot is not the top left corner and the
47 * physical cursor position becomes negative. It will be be displayed
48 * if either the horizontal or vertical cursor position is negative
50 * If x becomes negative the cursor manager must adjust the CURS_HORZ_OFFSET
54 * CUR_OFFSET must be adjusted to a point to the appropraite line in the cursor
66 static int atyfb_cursor(struct fb_info *info, struct fb_cursor *cursor)
80 if (cursor->enable)
88 if (cursor->set & FB_CUR_SETPOS) {
89 x = cursor->image.dx - cursor->hot.x - info->var.xoffset;
97 y = cursor->image.dy - cursor->hot.y - info->var.yoffset;
105 h = cursor->image.height;
108 * In doublescan mode, the cursor location
123 if (cursor->set & FB_CUR_SETCMAP) {
126 fg_idx = cursor->image.fg_color;
127 bg_idx = cursor->image.bg_color;
142 if (cursor->set & (FB_CUR_SETSHAPE | FB_CUR_SETIMAGE)) {
143 u8 *src = (u8 *)cursor->image.data;
144 u8 *msk = (u8 *)cursor->mask;
146 unsigned int width = (cursor->image.width + 7) >> 3;
147 unsigned int height = cursor->image.height;
153 // Clear cursor image with 1010101010...
162 switch (cursor->rop) {