Change: Text Layouter support querying all lines for character at pixel
This commit is contained in:

committed by
Patric Stout

parent
d1a0ca67be
commit
4765d0f8c2
@@ -899,7 +899,7 @@ ptrdiff_t GetCharAtPosition(std::string_view str, int x, FontSize start_fontsize
|
||||
if (x < 0) return -1;
|
||||
|
||||
Layouter layout(str, INT32_MAX, TC_FROMSTRING, start_fontsize);
|
||||
return layout.GetCharAtPosition(x);
|
||||
return layout.GetCharAtPosition(x, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user