Decompile fn_16993 (UIWindow::WrapPixelText)

Batch #13794 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_16993 UIWindow::WrapPixelText: logic confirmed by peer review

Peer-reviewed-by: Yommy, KWDev, SapitoSucio
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-11-07 03:06:34 +00:00
commit cd310b2626

View file

@ -11,11 +11,14 @@
// OFFSET: 0x00A82310
// FUNCTION: fn_16993
void UIWindow::WrapPixelText(const char* text, std::vector<std::string>& lines, int width) {
if (!text || *text == '\0') {
if (!text) {
return;
}
const int bytes = static_cast<int>(std::strlen(text));
if (bytes == 0) {
return;
}
if (this->TextWidth(text, bytes, 0, 12, 0, 0) <= 0) {
return;