diff options
author | Keith Packard <keithp@keithp.com> | 2009-08-25 18:33:04 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-08-25 18:37:44 -0700 |
commit | 5fa8d04d9c86f343802c05bd3e11c6e733f01b63 (patch) | |
tree | c4ba80a4e77c640b6f85a677aba56c2df57e5988 /src | |
parent | 1fc3f467ab3edd405adc569ac7f629077e6ffb9d (diff) |
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 (limited to 'src')
-rw-r--r-- | src/drmmode_display.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index af5e56b9..404f8b94 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; |