Decompile fn_07713 (UIMessengerGroupWnd::Slot25)
Batch #10891 by cremane: 1 byte-identical, 0 confirmed by peer review. - fn_07713 UIMessengerGroupWnd::Slot25: byte-identical Peer-reviewed-by: Yommy, KWDev, raiken, StrawberrysherbetIX Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
7f8cc60d2c
commit
ba1f4e6ff3
1 changed files with 1 additions and 13 deletions
|
|
@ -1123,19 +1123,7 @@ void UIMessengerGroupWnd::Slot25(int x, int y) {
|
|||
}
|
||||
|
||||
const int previous = this->selected;
|
||||
this->selected = -1;
|
||||
|
||||
if (x >= 2 && x <= this->geometry.width - 2 && y > 16 && y < this->visibleRows * this->rowHeight + 17) {
|
||||
const int index = (y - 17) / this->rowHeight + this->scrollTop;
|
||||
int position = 0;
|
||||
for (auto member = this->members.begin(); member != this->members.end(); ++member, ++position) {
|
||||
if (position == index) {
|
||||
this->selected = index;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const MessengerMember member = this->MemberAt(x, y);
|
||||
if (previous != this->selected) {
|
||||
this->Invalidate();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue