Codechange: Scrollbar methods now accept size_t.

This clears up a lot of casts from size_t to int.
This commit is contained in:
Peter Nelson
2023-05-07 16:10:56 +01:00
committed by PeterN
parent 923d1b0846
commit d2034d9c38
23 changed files with 43 additions and 44 deletions

View File

@@ -172,8 +172,8 @@ struct DropdownWindow : Window {
}
/* Capacity is the average number of items visible */
this->vscroll->SetCapacity(size.height * (uint16)this->list.size() / list_height);
this->vscroll->SetCount((uint16)this->list.size());
this->vscroll->SetCapacity(size.height * this->list.size() / list_height);
this->vscroll->SetCount(this->list.size());
this->parent_wnd_class = parent->window_class;
this->parent_wnd_num = parent->window_number;