Skip to contentSkip to conversation

xf86-video-modesetting cursor reload

PATCH In review James Simmons 2 participants 2 messages Mar 6, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xf86-video-modesetting cursor reload

Enable after a resolution change reload the cursor image.

src/drmmode_display.c +2 -4
index 7fa933a..8a49103 100644
@@ -361,11 +361,9 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
 		}
 	}
 
-#if 0
-	if (pScrn->pScreen &&
-		!xf86ReturnOptValBool(info->Options, OPTION_SW_CURSOR, FALSE))
+	if (pScrn->pScreen && !drmmode->sw_cursor)
 		xf86_reload_cursors(pScrn->pScreen);
-#endif
+
 done:
 	if (!ret) {
 		crtc->x = saved_x;
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · James Simmons

Enable after a resolution change reload the cursor image.

Quoted 23 lines
src/drmmode_display.c +2 -4
index 7fa933a..8a49103 100644
@@ -361,11 +361,9 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
                }
        }
 
-#if 0
-       if (pScrn->pScreen &&
-               !xf86ReturnOptValBool(info->Options, OPTION_SW_CURSOR, FALSE))
+       if (pScrn->pScreen && !drmmode->sw_cursor)
                xf86_reload_cursors(pScrn->pScreen);
-#endif
+

 done:
       if (!ret) {
               crtc->x = saved_x;
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel