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
@@ -22,8 +22,8 @@ void SetSelectionRed(bool);
|
||||
|
||||
void DeleteWindowViewport(Window *w);
|
||||
void InitializeWindowViewport(Window *w, int x, int y, int width, int height, uint32 follow_flags, ZoomLevel zoom);
|
||||
ViewPort *IsPtInWindowViewport(const Window *w, int x, int y);
|
||||
Point TranslateXYToTileCoord(const ViewPort *vp, int x, int y, bool clamp_to_map = true);
|
||||
Viewport *IsPtInWindowViewport(const Window *w, int x, int y);
|
||||
Point TranslateXYToTileCoord(const Viewport *vp, int x, int y, bool clamp_to_map = true);
|
||||
Point GetTileBelowCursor();
|
||||
void UpdateViewportPosition(Window *w);
|
||||
|
||||
@@ -33,7 +33,7 @@ bool DoZoomInOutWindow(ZoomStateChange how, Window *w);
|
||||
void ZoomInOrOutToCursorWindow(bool in, Window * w);
|
||||
Point GetTileZoomCenterWindow(bool in, Window * w);
|
||||
void FixTitleGameZoom();
|
||||
void HandleZoomMessage(Window *w, const ViewPort *vp, byte widget_zoom_in, byte widget_zoom_out);
|
||||
void HandleZoomMessage(Window *w, const Viewport *vp, byte widget_zoom_in, byte widget_zoom_out);
|
||||
|
||||
/**
|
||||
* Zoom a viewport as far as possible in the given direction.
|
||||
@@ -58,12 +58,12 @@ void ViewportAddString(const DrawPixelInfo *dpi, ZoomLevel small_from, const Vie
|
||||
void StartSpriteCombine();
|
||||
void EndSpriteCombine();
|
||||
|
||||
bool HandleViewportClicked(const ViewPort *vp, int x, int y);
|
||||
bool HandleViewportClicked(const Viewport *vp, int x, int y);
|
||||
void SetRedErrorSquare(TileIndex tile);
|
||||
void SetTileSelectSize(int w, int h);
|
||||
void SetTileSelectBigSize(int ox, int oy, int sx, int sy);
|
||||
|
||||
void ViewportDoDraw(const ViewPort *vp, int left, int top, int right, int bottom);
|
||||
void ViewportDoDraw(const Viewport *vp, int left, int top, int right, int bottom);
|
||||
|
||||
bool ScrollWindowToTile(TileIndex tile, Window *w, bool instant = false);
|
||||
bool ScrollWindowTo(int x, int y, int z, Window *w, bool instant = false);
|
||||
@@ -91,7 +91,7 @@ static inline void MarkTileDirtyByTile(TileIndex tile, int bridge_level_offset =
|
||||
MarkTileDirtyByTile(tile, bridge_level_offset, TileHeight(tile));
|
||||
}
|
||||
|
||||
Point GetViewportStationMiddle(const ViewPort *vp, const Station *st);
|
||||
Point GetViewportStationMiddle(const Viewport *vp, const Station *st);
|
||||
|
||||
struct Station;
|
||||
struct Town;
|
||||
|
Reference in New Issue
Block a user