summaryrefslogtreecommitdiff
path: root/screenshot.c
diff options
context:
space:
mode:
Diffstat (limited to 'screenshot.c')
-rw-r--r--screenshot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/screenshot.c b/screenshot.c
index 3c134cdcc..7fe4b2cbd 100644
--- a/screenshot.c
+++ b/screenshot.c
@@ -460,7 +460,7 @@ static void CurrentScreenCallback(void *userdata, Pixel *buf, uint y, uint pitch
// generate a large piece of the world
static void LargeWorldCallback(void *userdata, Pixel *buf, uint y, uint pitch, uint n)
{
- ViewPort *vp = (ViewPort *)userdata;
+ const ViewPort* vp = (const ViewPort*)userdata;
DrawPixelInfo dpi, *old_dpi;
int wx, left;