diff options
| author | Zufu Liu <unknown> | 2022-01-13 13:31:21 +1100 |
|---|---|---|
| committer | Zufu Liu <unknown> | 2022-01-13 13:31:21 +1100 |
| commit | 9a4d8858e5006a0709deef04e8e7d520e7a467de (patch) | |
| tree | 967195d0f3e62ee25bc428853e4cc458667b91da /win32/ScintillaWin.cxx | |
| parent | 16357f96e8c573cf727f6a0e261799a1f0e03dde (diff) | |
| download | scintilla-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.cxx | 2 |
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); |
