summaryrefslogtreecommitdiff
authorKeith Packard <keithp@keithp.com>2009-08-26 01:33:04 (GMT)
committer Keith Packard <keithp@keithp.com>2009-08-26 01:37:44 (GMT)
commit5fa8d04d9c86f343802c05bd3e11c6e733f01b63 (patch) (side-by-side diff)
treec4ba80a4e77c640b6f85a677aba56c2df57e5988
parent1fc3f467ab3edd405adc569ac7f629077e6ffb9d (diff)
downloadxf86-video-intel-5fa8d04d9c86f343802c05bd3e11c6e733f01b63.zip
xf86-video-intel-5fa8d04d9c86f343802c05bd3e11c6e733f01b63.tar.gz
Reload cursors as needed when setting new modes.
Cursor images may need rotation, or positions updated when new modes are set. The server provides a convenience function, xf86_reload_cursors for precisely this purpose. Just call it after the new mode is set. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/drmmode_display.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index af5e56b..404f8b9 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -391,6 +391,8 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
i830_set_max_gtt_map_size(pScrn);
+ if (pScrn->pScreen)
+ xf86_reload_cursors(pScrn->pScreen);
done:
if (!ret) {
crtc->x = saved_x;