diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-03-25 22:48:18 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-03-25 22:48:18 +0100 |
commit | 3dd174abbf2bf1bb4e42aa21ff78fb9b4f8b4679 (patch) | |
tree | c37111919e642ff0a235a93f14591f4028065c30 | |
parent | a84a3dd6635fcd2e07f510cba6a999585dcc381a (diff) |
patch 8.1.1050: blank srceen when DirectWrite failedv8.1.1050
Problem: Blank srceen when DirectWrite failed.
Solution: Call redraw_later_clear() after recreating the Direct2D render
target. (Ken Takata, closes #4172)
-rw-r--r-- | src/gui_dwrite.cpp | 3 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/gui_dwrite.cpp b/src/gui_dwrite.cpp index 4a24a0306f..3c477d0527 100644 --- a/src/gui_dwrite.cpp +++ b/src/gui_dwrite.cpp @@ -930,6 +930,8 @@ DWriteContext::BindDC(HDC hdc, const RECT *rect) } } +extern "C" void redraw_later_clear(void); + HRESULT DWriteContext::SetDrawingMode(DrawingMode mode) { @@ -952,6 +954,7 @@ DWriteContext::SetDrawingMode(DrawingMode mode) hr = S_OK; DiscardDeviceResources(); CreateDeviceResources(); + redraw_later_clear(); } mDrawing = false; } diff --git a/src/version.c b/src/version.c index f0da22a489..f4496423c2 100644 --- a/src/version.c +++ b/src/version.c @@ -776,6 +776,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1050, +/**/ 1049, /**/ 1048, |