From d1b138f289dfe8d6461175794a274c366e25d85b Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 05:14:04 +0000 Subject: [PATCH] Confirm 2 functions in Source/UI/Lists/UIComboBoxEx.cpp, Source/UI/Lists/UIListBoxEx.cpp, ... Batch #11868 by StrawberrysherbetIX: 2 byte-identical, 0 confirmed by peer review. - fn_11435 UIComboBoxEx::Slot31: byte-identical (already on main) - fn_11464 UIComboBoxEx::Slot27: byte-identical (already on main) Merged automatically: every function is byte-identical to the original. --- Source/UI/Lists/UIListBoxEx.cpp | 10 ---------- Source/UI/Lists/UIListBoxEx.h | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Source/UI/Lists/UIListBoxEx.cpp b/Source/UI/Lists/UIListBoxEx.cpp index 1c194a8cc..429598272 100644 --- a/Source/UI/Lists/UIListBoxEx.cpp +++ b/Source/UI/Lists/UIListBoxEx.cpp @@ -120,16 +120,6 @@ void UIListBoxEx::Refresh() { bar->Invalidate(); } -// INLINED -int UIListBoxEx::LineAt(int x, int y) const { - if (x < 0 || y < 0 || x >= this->geometry.width || y >= this->geometry.height) { - return -1; - } - - const int index = (this->topLine + y / this->lineHeight); - return index >= 0 && static_cast(index) < this->lines.size() ? index : -1; -} - // OFFSET: 0x008905A0 // FUNCTION: fn_11419 void UIListBoxEx::Slot25(int x, int y) { diff --git a/Source/UI/Lists/UIListBoxEx.h b/Source/UI/Lists/UIListBoxEx.h index 0ddd7c8e0..2edb888b2 100644 --- a/Source/UI/Lists/UIListBoxEx.h +++ b/Source/UI/Lists/UIListBoxEx.h @@ -51,6 +51,16 @@ protected: int LineAt(int x, int y) const; }; +// INLINED +inline int UIListBoxEx::LineAt(int x, int y) const { + if (x < 0 || y < 0 || x >= this->geometry.width || y >= this->geometry.height) { + return -1; + } + + const int index = (this->topLine + y / this->lineHeight); + return index >= 0 && static_cast(index) < this->lines.size() ? index : -1; +} + #if defined(_WIN32) && !defined(_WIN64) static_assert(sizeof(ExtendedListLine) == 28); static_assert(sizeof(UIListBoxEx) == 0xC0);