Decompile fn_10461 (CCreateLineInfo::MeasureText)

Batch #7044 by aDw: 0 byte-identical, 1 confirmed by peer review.

- fn_10461 CCreateLineInfo::MeasureText: logic confirmed by peer review

Peer-reviewed-by: eAthena, Snow
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-10-31 03:29:54 +00:00
commit 280f67bba0
2 changed files with 10 additions and 1 deletions

View file

@ -716,6 +716,15 @@ std::pair<std::string, std::string> CCreateLineInfo::GetLinkTags(int type) {
}
// OFFSET: 0x00839FA0
// FUNCTION: fn_10461
tagSIZE CCreateLineInfo::MeasureText(UIWindow* window, std::string text, const LineTextStyle& style) {
if (!window) {
return tagSIZE{0, 0};
}
const TextLocale locale = {};
return window->TextSize(g_fontCache, locale, text.c_str(), text.size(), 0, style.fontHeight, style.bold, style.italic);
}
// OFFSET: 0x0083A180
// FUNCTION: fn_10462