mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-07 02:30:25 +02:00
Replace non-leading tabs with spaces, using:
find -type f | # list all regular files grep -E '\.(h|cpp|mm)$' | # filter for source files grep -v '/mt_' | # filter out generated files grep -v '/vendor/' | # and vendored GL xargs -n 1 -P $(nproc) ./replace_non_leading_tabs.lua # reformat everything
This commit is contained in:
@ -1358,7 +1358,7 @@ void CGUIEditBox::calculateScrollPos()
|
||||
irr::u32 cursorWidth = font->getDimension(CursorChar.c_str()).Width;
|
||||
core::stringw *txtLine = hasBrokenText ? &BrokenText[cursLine] : &Text;
|
||||
s32 cPos = hasBrokenText ? CursorPos - BrokenTextPositions[cursLine] : CursorPos; // column
|
||||
s32 cStart = font->getDimension(txtLine->subString(0, cPos).c_str()).Width; // pixels from text-start
|
||||
s32 cStart = font->getDimension(txtLine->subString(0, cPos).c_str()).Width; // pixels from text-start
|
||||
s32 cEnd = cStart + cursorWidth;
|
||||
s32 txtWidth = font->getDimension(txtLine->c_str()).Width;
|
||||
|
||||
|
Reference in New Issue
Block a user