Merge branch 'master' into jgrpp
# Conflicts: # src/station_gui.cpp # src/vehicle_cmd.cpp # src/vehicle_gui.cpp
This commit is contained in:
@@ -536,10 +536,9 @@ public:
|
||||
case WID_NG_MATRIX: {
|
||||
uint16_t y = r.top;
|
||||
|
||||
const int max = std::min(this->vscroll->GetPosition() + this->vscroll->GetCapacity(), (int)this->servers.size());
|
||||
|
||||
for (int i = this->vscroll->GetPosition(); i < max; ++i) {
|
||||
const NetworkGameList *ngl = this->servers[i];
|
||||
auto [first, last] = this->vscroll->GetVisibleRangeIterators(this->servers);
|
||||
for (auto it = first; it != last; ++it) {
|
||||
const NetworkGameList *ngl = *it;
|
||||
this->DrawServerLine(ngl, y, ngl == this->server);
|
||||
y += this->resize.step_height;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user