aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_kms.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
index 1cebf64f1142..5ccce1c3daf9 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
@@ -176,7 +176,9 @@ err_unreserve:
176 return 0; 176 return 0;
177 } 177 }
178 178
179 vmw_cursor_update_position(dev_priv, true, du->cursor_x, du->cursor_y); 179 vmw_cursor_update_position(dev_priv, true,
180 du->cursor_x + du->hotspot_x,
181 du->cursor_y + du->hotspot_y);
180 182
181 return 0; 183 return 0;
182} 184}
@@ -191,7 +193,8 @@ int vmw_du_crtc_cursor_move(struct drm_crtc *crtc, int x, int y)
191 du->cursor_y = y + crtc->y; 193 du->cursor_y = y + crtc->y;
192 194
193 vmw_cursor_update_position(dev_priv, shown, 195 vmw_cursor_update_position(dev_priv, shown,
194 du->cursor_x, du->cursor_y); 196 du->cursor_x + du->hotspot_x,
197 du->cursor_y + du->hotspot_y);
195 198
196 return 0; 199 return 0;
197} 200}