[2/4] gdi32: Fix text rotation problem in GM_ADVANCED graphics mode.

Huw Davies huw at codeweavers.com
Tue Jan 7 08:18:55 CST 2014


On Tue, Jan 07, 2014 at 02:33:32PM +0100, Ralf Habacker wrote:
> @@ -1327,6 +1327,20 @@ BOOL WINAPI GetTextExtentExPointW( HDC hdc, LPCWSTR str, INT count, INT max_ext,
>          }
>      }
>  
> +    XFORM old;
> +    BOOL exclude_rotation = FALSE;
> +    if ( GetGraphicsMode( hdc ) == GM_ADVANCED )
> +    {
> +        GetWorldTransform( hdc, &old );
> +        XFORM xf = old;
> +        if ( hasRotatedAndSameScaledMatrixOnly( &xf ) )
> +        {
> +            exclude_rotation = TRUE;
> +            removeRotationFromMatrix( &xf, NULL );
> +            SetWorldTransform( hdc, &xf );
> +        }
> +    }

Does Windows really do this only in the same-scaled, non-sheared case?

Huw.



More information about the wine-devel mailing list