search for: nv_cursor_pixel

Displaying 1 result from an estimated 1 matches for "nv_cursor_pixel".

Did you mean: nv_cursor_pixels
2009 Aug 17
2
[PATCH] kms: Fix <nv11 hardware cursor.
...NVPtr pNv = NVPTR(crtc->scrn); + xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(crtc->scrn); + drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private; + struct nouveau_bo *bo = drmmode_crtc->cursor; + + /* save copy of image for colour changes */ + memcpy(pNv->curImage, image, nv_cursor_pixels(pNv)/4); + + nouveau_bo_map(bo, NOUVEAU_BO_WR); + nv_cursor_convert_cursor(pNv->curImage, bo->map, nv_cursor_width(pNv), + 64, 32, config->cursor_fg | (0xff << 24), + config->cursor_bg | (0xff << 24)); + nouveau_bo_unmap(bo); +} + +static void drmmode_load_cursor_a...