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.
This commit is contained in:
parent
997f0c5149
commit
d1b138f289
2 changed files with 10 additions and 10 deletions
|
|
@ -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<unsigned>(index) < this->lines.size() ? index : -1;
|
||||
}
|
||||
|
||||
// OFFSET: 0x008905A0
|
||||
// FUNCTION: fn_11419
|
||||
void UIListBoxEx::Slot25(int x, int y) {
|
||||
|
|
|
|||
|
|
@ -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<unsigned>(index) < this->lines.size() ? index : -1;
|
||||
}
|
||||
|
||||
#if defined(_WIN32) && !defined(_WIN64)
|
||||
static_assert(sizeof(ExtendedListLine) == 28);
|
||||
static_assert(sizeof(UIListBoxEx) == 0xC0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue