aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/ScintillaWin.cxx
diff options
context:
space:
mode:
authorZufu Liu <unknown>2022-01-13 13:31:21 +1100
committerZufu Liu <unknown>2022-01-13 13:31:21 +1100
commit9a4d8858e5006a0709deef04e8e7d520e7a467de (patch)
tree967195d0f3e62ee25bc428853e4cc458667b91da /win32/ScintillaWin.cxx
parent16357f96e8c573cf727f6a0e261799a1f0e03dde (diff)
downloadscintilla-mirror-9a4d8858e5006a0709deef04e8e7d520e7a467de.tar.gz
Remove tests for pD2DFactory and pIDWriteFactory that can not fail.
Use constexpr.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r--win32/ScintillaWin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index c80be52e3..681f0b42b 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -619,7 +619,7 @@ void ScintillaWin::EnsureRenderTarget(HDC hdc) {
DropRenderTarget();
renderTargetValid = true;
}
- if (pD2DFactory && !pRenderTarget) {
+ if (!pRenderTarget) {
HWND hw = MainHWND();
RECT rc;
::GetClientRect(hw, &rc);