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
|
||||
DWriteContext::SetDrawingMode(DrawingMode mode)
|
||||
{
|
||||
@@ -952,6 +954,7 @@ DWriteContext::SetDrawingMode(DrawingMode mode)
|
||||
hr = S_OK;
|
||||
DiscardDeviceResources();
|
||||
CreateDeviceResources();
|
||||
redraw_later_clear();
|
||||
}
|
||||
mDrawing = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user