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/screenshot.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/screenshot.cpp')
-rw-r--r-- | src/screenshot.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/screenshot.cpp b/src/screenshot.cpp index 8cf83ae5b..b7abab8fc 100644 --- a/src/screenshot.cpp +++ b/src/screenshot.cpp @@ -612,7 +612,7 @@ static void CurrentScreenCallback(void *userdata, void *buf, uint y, uint pitch, */ static void LargeWorldCallback(void *userdata, void *buf, uint y, uint pitch, uint n) { - ViewPort *vp = (ViewPort *)userdata; + Viewport *vp = (Viewport *)userdata; DrawPixelInfo dpi, *old_dpi; int wx, left; @@ -707,11 +707,11 @@ static bool MakeSmallScreenshot(bool crashlog) } /** - * Configure a ViewPort for rendering (a part of) the map into a screenshot. + * Configure a Viewport for rendering (a part of) the map into a screenshot. * @param t Screenshot type * @param[out] vp Result viewport */ -void SetupScreenshotViewport(ScreenshotType t, ViewPort *vp) +void SetupScreenshotViewport(ScreenshotType t, Viewport *vp) { switch(t) { case SC_VIEWPORT: @@ -782,7 +782,7 @@ void SetupScreenshotViewport(ScreenshotType t, ViewPort *vp) */ static bool MakeLargeWorldScreenshot(ScreenshotType t) { - ViewPort vp; + Viewport vp; SetupScreenshotViewport(t, &vp); const ScreenshotFormat *sf = _screenshot_formats + _cur_screenshot_format; @@ -852,7 +852,7 @@ static void ScreenshotConfirmationCallback(Window *w, bool confirmed) */ void MakeScreenshotWithConfirm(ScreenshotType t) { - ViewPort vp; + Viewport vp; SetupScreenshotViewport(t, &vp); bool heightmap_or_minimap = t == SC_HEIGHTMAP || t == SC_MINIMAP; |