From: Maël Hörz <ma...@us...> - 2008-03-13 16:31:57
|
Update of /cvsroot/synedit/SynEdit/Source In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv15512 Modified Files: Tag: Unicode_2004_08_31 SynTextDrawer.pas SynUnicode.pas Log Message: - Add SSA_LINK flag to SSAnalyseFlags to fix text rendering issues in Vista. Index: SynUnicode.pas =================================================================== RCS file: /cvsroot/synedit/SynEdit/Source/Attic/SynUnicode.pas,v retrieving revision 1.1.2.37 retrieving revision 1.1.2.38 diff -u -d -r1.1.2.37 -r1.1.2.38 --- SynUnicode.pas 1 Mar 2008 18:32:02 -0000 1.1.2.37 +++ SynUnicode.pas 13 Mar 2008 16:31:41 -0000 1.1.2.38 @@ -2272,7 +2272,7 @@ function GetTextSize(DC: HDC; Str: PWideChar; Count: Integer): TSize; const - SSAnalyseFlags = SSA_GLYPHS or SSA_FALLBACK; + SSAnalyseFlags = SSA_GLYPHS or SSA_FALLBACK or SSA_LINK; var tm: TTextMetricA; GlyphBufferSize: Integer; Index: SynTextDrawer.pas =================================================================== RCS file: /cvsroot/synedit/SynEdit/Source/SynTextDrawer.pas,v retrieving revision 1.6.2.14 retrieving revision 1.6.2.15 diff -u -d -r1.6.2.14 -r1.6.2.15 --- SynTextDrawer.pas 2 Feb 2008 19:13:53 -0000 1.6.2.14 +++ SynTextDrawer.pas 13 Mar 2008 16:31:41 -0000 1.6.2.15 @@ -278,7 +278,7 @@ function UniversalExtTextOut(DC: HDC; X, Y: Integer; Options: TTextOutOptions; Rect: TRect; Str: PWideChar; Count: Integer; ETODist: PIntegerArray): Boolean; const - SSAnalyseFlags = SSA_GLYPHS or SSA_FALLBACK; + SSAnalyseFlags = SSA_GLYPHS or SSA_FALLBACK or SSA_LINK; SpaceString: WideString = ' '; var TextOutFlags: DWORD; @@ -306,7 +306,10 @@ Count := 1; end else + begin + Result := False; Exit; + end; // According to the MS Windows SDK (1.5 * Count + 16) is the recommended // value for GlyphBufferSize (see documentation of cGlyphs parameter of |