From: Bram Moolenaar Date: Mon, 25 Mar 2019 21:48:18 +0000 (+0100) Subject: patch 8.1.1050: blank srceen when DirectWrite failed X-Git-Tag: v8.1.1050 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3dd174abbf2bf1bb4e42aa21ff78fb9b4f8b4679;p=vim patch 8.1.1050: blank srceen when DirectWrite failed Problem: Blank srceen when DirectWrite failed. Solution: Call redraw_later_clear() after recreating the Direct2D render target. (Ken Takata, closes #4172) --- diff --git a/src/gui_dwrite.cpp b/src/gui_dwrite.cpp index 4a24a0306..3c477d052 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 f0da22a48..f4496423c 100644 --- a/src/version.c +++ b/src/version.c @@ -775,6 +775,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1050, /**/ 1049, /**/