[User] Fix clip cursor handling on resolution change

Alexandre Julliard julliard at winehq.org
Wed Nov 2 05:14:15 CST 2005


Lionel Ulmer <lionel.ulmer at free.fr> writes:

> @@ -173,6 +174,13 @@
>      /* Initialize system colors and metrics */
>      SYSPARAMS_Init();
>  
> +    /* Now that system metrics are set-up, we can initialize the clip rectangle */
> +    rect.left   = 0;
> +    rect.right  = GetSystemMetrics(SM_CXSCREEN);
> +    rect.top    = 0;
> +    rect.bottom = GetSystemMetrics(SM_CYSCREEN);
> +    ClipCursor(&rect);
> +

Please don't add more init code that requires the graphics driver,
I've been trying hard to get rid of these. I think it would be a lot
cleaner to simply store a 'no clip cursor' state that would return the
full resolution, then you could simply do a ClipCursor(NULL) on
resolution changes.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list