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:
parent
c8ef3758c5
commit
cd310b2626
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue