Mercurial > vim
changeset 16091:e8d8650fa625 v8.1.1050
patch 8.1.1050: blank srceen when DirectWrite failed
commit https://github.com/vim/vim/commit/3dd174abbf2bf1bb4e42aa21ff78fb9b4f8b4679
Author: Bram Moolenaar <Bram@vim.org>
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 25 Mar 2019 23:00:05 +0100 |
parents | 968fefb28be4 |
children | c18ba30d4097 |
files | src/gui_dwrite.cpp src/version.c |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; }