screenshot.h
author Darkvater
Tue, 02 May 2006 13:00:07 +0000
branch0.4
changeset 9982 6f21b86be9af
parent 9959 984493ab6fff
permissions -rw-r--r--
(svn r4667) - Backport from trunk (r4291):
Fix: validate all received strings for correctness. This fixes
potential crashes on hacked clients/servers
/* $Id$ */

#ifndef SCREENSHOT_H
#define SCREENSHOT_H

void InitializeScreenshotFormats(void);

const char *GetScreenshotFormatDesc(int i);
void SetScreenshotFormat(int i);

bool MakeScreenshot(void);
bool MakeWorldScreenshot(int left, int top, int width, int height, int zoom);

extern char _screenshot_format_name[8];
extern uint _num_screenshot_formats;
extern uint _cur_screenshot_format;

#endif /* SCREENSHOT_H */