Mercurial > vim
comparison src/gui_dwrite.cpp @ 16539:563163ec0244 v8.1.1273
patch 8.1.1273: compiler warning in direct write code
commit https://github.com/vim/vim/commit/f653a6bcff48161b56eeb3a584011aab6665f1e7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 5 13:20:02 2019 +0200
patch 8.1.1273: compiler warning in direct write code
Problem: Compiler warning in direct write code.
Solution: Add a type cast.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 05 May 2019 13:30:05 +0200 |
parents | e8d8650fa625 |
children | 26824776adf6 |
comparison
equal
deleted
inserted
replaced
16538:cb7c468eae13 | 16539:563163ec0244 |
---|---|
947 mInteropHDC = NULL; | 947 mInteropHDC = NULL; |
948 } | 948 } |
949 if (mDrawing) | 949 if (mDrawing) |
950 { | 950 { |
951 hr = mRT->EndDraw(); | 951 hr = mRT->EndDraw(); |
952 if (hr == D2DERR_RECREATE_TARGET) | 952 if (hr == (HRESULT)D2DERR_RECREATE_TARGET) |
953 { | 953 { |
954 hr = S_OK; | 954 hr = S_OK; |
955 DiscardDeviceResources(); | 955 DiscardDeviceResources(); |
956 CreateDeviceResources(); | 956 CreateDeviceResources(); |
957 redraw_later_clear(); | 957 redraw_later_clear(); |