Codechange: Spell 'Viewport' consistently
Some places in the codebase misspell 'Viewport' as 'ViewPort' or 'view_port'. This patch makes everything consistent.
This commit is contained in:

committed by
Charles Pigott

parent
7d66540af5
commit
a10013dd00
@@ -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;
|
||||
|
Reference in New Issue
Block a user