diff options
author | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2024-02-20 01:33:17 -0800 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2024-02-22 13:21:46 +0100 |
commit | 75275cf453975f9b391e024b0431869496db0189 (patch) | |
tree | 0d51b9722ba412a053967dbf1dbff175ecd58dd7 | |
parent | 170860775de552f255a48a1f1b37c9b3460c033d (diff) |
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
-rw-r--r-- | vcl/win/gdi/winlayout.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); |