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:
@@ -930,6 +930,8 @@ DWriteContext::BindDC(HDC hdc, const RECT *rect)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern "C" void redraw_later_clear(void);
|
||||||
|
|
||||||
HRESULT
|
HRESULT
|
||||||
DWriteContext::SetDrawingMode(DrawingMode mode)
|
DWriteContext::SetDrawingMode(DrawingMode mode)
|
||||||
{
|
{
|
||||||
@@ -952,6 +954,7 @@ DWriteContext::SetDrawingMode(DrawingMode mode)
|
|||||||
hr = S_OK;
|
hr = S_OK;
|
||||||
DiscardDeviceResources();
|
DiscardDeviceResources();
|
||||||
CreateDeviceResources();
|
CreateDeviceResources();
|
||||||
|
redraw_later_clear();
|
||||||
}
|
}
|
||||||
mDrawing = false;
|
mDrawing = false;
|
||||||
}
|
}
|
||||||
|
@@ -775,6 +775,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1050,
|
||||||
/**/
|
/**/
|
||||||
1049,
|
1049,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user