0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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)
This commit is contained in:
Bram Moolenaar
2019-03-25 22:48:18 +01:00
parent a84a3dd663
commit 3dd174abbf
2 changed files with 5 additions and 0 deletions

View File

@@ -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;
}

View File

@@ -775,6 +775,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1050,
/**/
1049,
/**/