# HG changeset patch # User Bram Moolenaar # Date 1553551205 -3600 # Node ID e8d8650fa625bba6dd92c0ac7624a955ed70d8dd # Parent 968fefb28be4029677803a898504328cfe96865d patch 8.1.1050: blank srceen when DirectWrite failed commit https://github.com/vim/vim/commit/3dd174abbf2bf1bb4e42aa21ff78fb9b4f8b4679 Author: Bram Moolenaar Date: Mon Mar 25 22:48:18 2019 +0100 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 --- a/src/gui_dwrite.cpp +++ b/src/gui_dwrite.cpp @@ -930,6 +930,8 @@ DWriteContext::BindDC(HDC hdc, const REC } } +extern "C" void redraw_later_clear(void); + HRESULT DWriteContext::SetDrawingMode(DrawingMode mode) { @@ -952,6 +954,7 @@ DWriteContext::SetDrawingMode(DrawingMod hr = S_OK; DiscardDeviceResources(); CreateDeviceResources(); + redraw_later_clear(); } mDrawing = false; } diff --git a/src/version.c b/src/version.c --- 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,