vcl/win/gdi/winlayout.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 75275cf453975f9b391e024b0431869496db0189
Author:     Thorsten Behrens <thorsten.behr...@allotropia.de>
AuthorDate: Tue Feb 20 01:33:17 2024 -0800
Commit:     Thorsten Behrens <thorsten.behr...@allotropia.de>
CommitDate: Thu Feb 22 13:21:46 2024 +0100

    perf: hard-disable D2DWriteTextRenderer code path
    
    On certain Windows / hardware / driver combinations, this triggers a
    real slow path. It also tends to be used more widely since 7.5,
    overall slowing down scrolling large text documents measurably.
    
    Change-Id: I64a76e7470b5ed1fd4d38f0e9dce28ca6f52ef04

diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx
index 371bdeb9642e..ae79b773b3a9 100644
--- a/vcl/win/gdi/winlayout.cxx
+++ b/vcl/win/gdi/winlayout.cxx
@@ -227,7 +227,7 @@ void WinSalGraphics::DrawTextLayout(const GenericSalLayout& 
rLayout)
     const bool bVerticalScreenText
         = !mbPrinter && rLayout.GetFont().GetFontSelectPattern().mbVertical;
     const bool bRenderingModeNatural = 
rLayout.GetTextRenderModeForResolutionIndependentLayout();
-    const bool bUseDWrite = bVerticalScreenText || bRenderingModeNatural;
+    const bool bUseDWrite = false;
     DrawTextLayout(rLayout, hDC, bUseDWrite, bRenderingModeNatural);
 
     ::SelectFont(hDC, hOrigFont);

Reply via email to