summaryrefslogtreecommitdiff
path: root/src/screenshot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/screenshot.cpp')
-rw-r--r--src/screenshot.cpp10
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;