MCPcopy 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
712static 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

ScrollEditBoxTextRectFunction · 0.85
DrawEditBoxMethod · 0.85

Calls 1

GetCharacterWidthFunction · 0.85

Tested by

no test coverage detected