Mercurial > vim
comparison src/gui_dwrite.cpp @ 16048:728bef04b0d4 v8.1.1029
patch 8.1.1029: DirectWrite doesn't take 'linespace' into account
commit https://github.com/vim/vim/commit/60ebd524cf7a27c936cb34395cda9a7cc23abeae
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 21 20:50:12 2019 +0100
patch 8.1.1029: DirectWrite doesn't take 'linespace' into account
Problem: DirectWrite doesn't take 'linespace' into account.
Solution: Include 'linespace' in the position. (Ken Takata, closes https://github.com/vim/vim/issues/4137)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 21 Mar 2019 21:00:05 +0100 |
parents | 6d869997a8b7 |
children | e8d8650fa625 |
comparison
equal
deleted
inserted
replaced
16047:6c72c41c706c | 16048:728bef04b0d4 |
---|---|
1029 textLayout->SetFontWeight(mFontWeight, textRange); | 1029 textLayout->SetFontWeight(mFontWeight, textRange); |
1030 textLayout->SetFontStyle(mFontStyle, textRange); | 1030 textLayout->SetFontStyle(mFontStyle, textRange); |
1031 | 1031 |
1032 TextRenderer renderer(this); | 1032 TextRenderer renderer(this); |
1033 TextRendererContext context = { color, FLOAT(cellWidth), 0.0f }; | 1033 TextRendererContext context = { color, FLOAT(cellWidth), 0.0f }; |
1034 textLayout->Draw(&context, &renderer, FLOAT(x), FLOAT(y) - 0.5f); | 1034 textLayout->Draw(&context, &renderer, FLOAT(x), FLOAT(y)); |
1035 } | 1035 } |
1036 | 1036 |
1037 SafeRelease(&textLayout); | 1037 SafeRelease(&textLayout); |
1038 } | 1038 } |
1039 | 1039 |