Drop widget invalidation in LinkGraphOverlay mask methods
commitd13ebf6765fbda2deb810500312f8285c1265d05
authorcirdan <cirdansw@gmail.com>
Fri, 9 Jun 2017 18:10:28 +0000 (9 20:10 +0200)
committercirdan <cirdansw@gmail.com>
Fri, 9 Jun 2017 18:10:28 +0000 (9 20:10 +0200)
tree0e8e640588a339f69da652d87e38d4bac1c5ef8b
parent6ffb2141a9d27a678267987ea6849173620c6218
Drop widget invalidation in LinkGraphOverlay mask methods

LinkGraphOverlay::SetCargoMask and LinkGraphOverlay::SetCompanyMask
are only called from LinkGraphLegendWindow::OnClick and from the
smallmap, but all calls from the smallmap code are followed by an
unconditional invalidation of the whole smallmap window, so only
LinkGraphLegendWindow::OnClick needs the widget invalidation done in
LinkGraphOverlay::SetCargoMask and LinkGraphOverlay::SetCompanyMask,
and then we know that the widget to invalidate is the viewport in
the main window.
src/linkgraph/linkgraph_gui.cpp