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/window.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/window.cpp')
-rw-r--r-- | src/window.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp index 9fea6d102..3281e9f56 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -2789,7 +2789,7 @@ static void HandleAutoscroll() if (w == nullptr || w->flags & WF_DISABLE_VP_SCROLL) return; if (_settings_client.gui.auto_scrolling != VA_EVERY_VIEWPORT && w->window_class != WC_MAIN_WINDOW) return; - ViewPort *vp = IsPtInWindowViewport(w, x, y); + Viewport *vp = IsPtInWindowViewport(w, x, y); if (vp == nullptr) return; x -= vp->left; @@ -2899,7 +2899,7 @@ static void MouseLoop(MouseClick click, int mousewheel) if (w == nullptr) return; if (click != MC_HOVER && !MaybeBringWindowToFront(w)) return; - ViewPort *vp = IsPtInWindowViewport(w, x, y); + Viewport *vp = IsPtInWindowViewport(w, x, y); /* Don't allow any action in a viewport if either in menu or when having a modal progress window */ if (vp != nullptr && (_game_mode == GM_MENU || HasModalProgress())) return; |