diff options
author | crupest <crupest@outlook.com> | 2020-04-21 17:29:37 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-04-21 17:29:37 +0800 |
commit | 977baa3a42a8b813e75a3666809155604cb6713d (patch) | |
tree | faa787e43fe8203139f79f8b39332584c1422a7d /src | |
parent | 2898b68fc4f7ff40844ddf5a1d0b59f76b06290f (diff) | |
download | cru-977baa3a42a8b813e75a3666809155604cb6713d.tar.gz cru-977baa3a42a8b813e75a3666809155604cb6713d.tar.bz2 cru-977baa3a42a8b813e75a3666809155604cb6713d.zip |
...
Diffstat (limited to 'src')
-rw-r--r-- | src/win/graph/direct/text_layout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win/graph/direct/text_layout.cpp b/src/win/graph/direct/text_layout.cpp index 6a6a2c45..f582dd0a 100644 --- a/src/win/graph/direct/text_layout.cpp +++ b/src/win/graph/direct/text_layout.cpp @@ -99,7 +99,7 @@ std::vector<Rect> DWriteTextLayout::TextRangeRect(const TextRange& text_range) { return result; } -Point DWriteTextLayout::TextSingleRect(int position, bool trailing) { +Point DWriteTextLayout::TextSingleRect(gsl::index position, bool trailing) { const auto index = IndexUtf8ToUtf16(text_, static_cast<int>(position), w_text_); |