diff options
author | TechGeekNZ <git@tech.geek.nz> | 2020-06-29 13:38:29 +1200 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2020-07-27 17:31:29 +0100 |
commit | a10013dd00ee0e78bba7804feddc81d84ba57d69 (patch) | |
tree | 8875568d7e0e1dff52916558f93462badb585295 /src/smallmap_gui.cpp | |
parent | 7d66540af55fe9c28790cfe9d839bfbf8afb91dc (diff) | |
download | openttd-a10013dd00ee0e78bba7804feddc81d84ba57d69.tar.xz |
Codechange: Spell 'Viewport' consistently
Some places in the codebase misspell 'Viewport' as 'ViewPort' or 'view_port'.
This patch makes everything consistent.
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r-- | src/smallmap_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index c4b650fc2..61b8bfd6a 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -931,7 +931,7 @@ void SmallMapWindow::DrawTowns(const DrawPixelInfo *dpi) const void SmallMapWindow::DrawMapIndicators() const { /* Find main viewport. */ - const ViewPort *vp = FindWindowById(WC_MAIN_WINDOW, 0)->viewport; + const Viewport *vp = FindWindowById(WC_MAIN_WINDOW, 0)->viewport; Point upper_left_smallmap_coord = InverseRemapCoords2(vp->virtual_left, vp->virtual_top); Point lower_right_smallmap_coord = InverseRemapCoords2(vp->virtual_left + vp->virtual_width - 1, vp->virtual_top + vp->virtual_height - 1); @@ -1646,7 +1646,7 @@ void SmallMapWindow::SetNewScroll(int sx, int sy, int sub) */ void SmallMapWindow::SmallMapCenterOnCurrentPos() { - const ViewPort *vp = FindWindowById(WC_MAIN_WINDOW, 0)->viewport; + const Viewport *vp = FindWindowById(WC_MAIN_WINDOW, 0)->viewport; Point viewport_center = InverseRemapCoords2(vp->virtual_left + vp->virtual_width / 2, vp->virtual_top + vp->virtual_height / 2); int sub; |