[PATCH] xf86-video-modesetting cursor reload

2012-03-06 Thread James Simmons

Enable after a resolution change reload the cursor image.

Signed-off-by: James Simmons 

diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 7fa933a..8a49103 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -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;


[PATCH] xf86-video-modesetting cursor reload

2012-03-06 Thread Alex Deucher
On Tue, Mar 6, 2012 at 8:55 AM, James Simmons  wrote:
>
> Enable after a resolution change reload the cursor image.
>
> Signed-off-by: James Simmons 

Reviewed-by: Alex Deucher 

>
> diff --git a/src/drmmode_display.c b/src/drmmode_display.c
> index 7fa933a..8a49103 100644
> --- a/src/drmmode_display.c
> +++ b/src/drmmode_display.c
> @@ -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
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel


[PATCH] xf86-video-modesetting cursor reload

2012-03-06 Thread James Simmons

Enable after a resolution change reload the cursor image.

Signed-off-by: James Simmons jsimm...@infradead.org

diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 7fa933a..8a49103 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -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
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH] xf86-video-modesetting cursor reload

2012-03-06 Thread Alex Deucher
On Tue, Mar 6, 2012 at 8:55 AM, James Simmons jsimm...@infradead.org wrote:

 Enable after a resolution change reload the cursor image.

 Signed-off-by: James Simmons jsimm...@infradead.org

Reviewed-by: Alex Deucher alexander.deuc...@amd.com


 diff --git a/src/drmmode_display.c b/src/drmmode_display.c
 index 7fa933a..8a49103 100644
 --- a/src/drmmode_display.c
 +++ b/src/drmmode_display.c
 @@ -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
 dri-devel@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/dri-devel
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel