mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
fix textbox:lineY
This commit is contained in:
parent
062188ede7
commit
6195d014cd
1 changed files with 1 additions and 1 deletions
|
|
@ -683,7 +683,7 @@ int TextBox::calcIndexAt(int x, int y) const {
|
||||||
|
|
||||||
int TextBox::getLineYOffset(int line) const {
|
int TextBox::getLineYOffset(int line) const {
|
||||||
if (rawTextCache.fontId == 0) return 0;
|
if (rawTextCache.fontId == 0) return 0;
|
||||||
return label->getLineYOffset(line) + getContentOffset().y;
|
return label->getLineYOffset(line);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline std::wstring get_alphabet(wchar_t c) {
|
static inline std::wstring get_alphabet(wchar_t c) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue