Re: [2/4] gdi32: Fix text rotation problem in GM_ADVANCED graphics mode.
7 Jan
2014
7 Jan
'14
2:18 p.m.
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.
4360
Age (days ago)
4360
Last active (days ago)
0 comments
1 participants
participants (1)
-
Huw Davies