Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenTTD/OpenTTD
/ GetCaretWidth
Function
GetCaretWidth
src/misc_gui.cpp:712–715 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
710
}
711
712
static int GetCaretWidth()
713
{
714
return GetCharacterWidth(FS_NORMAL,
'_'
);
715
}
716
717
/**
718
* Reposition edit text box rect based on textbuf length can caret position.
Callers
2
ScrollEditBoxTextRect
Function · 0.85
DrawEditBox
Method · 0.85
Calls
1
GetCharacterWidth
Function · 0.85
Tested by
no test coverage detected