comparison src/gui_dwrite.cpp @ 7547:567e027a3ea1 v7.4.1074

commit https://github.com/vim/vim/commit/5fa4d448fb717874b6619bcda62e42190702997c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 10 13:25:55 2016 +0100 patch 7.4.1074 Problem: Warning from VX2015 compiler. Solution: Add a type cast. (Mike Williams)
author Christian Brabandt <cb@256bit.org>
date Sun, 10 Jan 2016 13:30:05 +0100
parents f62b2e76dd80
children 770774e66011
comparison
equal deleted inserted replaced
7546:deff32fcc77a 7547:567e027a3ea1
684 text, len, mTextFormat, PixelsToDipsX(w), 684 text, len, mTextFormat, PixelsToDipsX(w),
685 PixelsToDipsY(h), mDpiScaleX, NULL, TRUE, &textLayout); 685 PixelsToDipsY(h), mDpiScaleX, NULL, TRUE, &textLayout);
686 686
687 if (SUCCEEDED(hr)) 687 if (SUCCEEDED(hr))
688 { 688 {
689 DWRITE_TEXT_RANGE textRange = { 0, len }; 689 DWRITE_TEXT_RANGE textRange = { 0, (UINT32)len };
690 textLayout->SetFontWeight(mFontWeight, textRange); 690 textLayout->SetFontWeight(mFontWeight, textRange);
691 textLayout->SetFontStyle(mFontStyle, textRange); 691 textLayout->SetFontStyle(mFontStyle, textRange);
692 } 692 }
693 693
694 if (SUCCEEDED(hr)) 694 if (SUCCEEDED(hr))