Files
@ r5427:5c600ac28c4a
Branch filter:
Location: cpp/openttd-patchpack/source/screenshot.h - annotation
r5427:5c600ac28c4a
501 B
text/x-c
(svn r7631) -Fix (r1): some pointer arithmetic gave the number of entries instead of the number of bytes to move when removing the animated state from a tile. This caused desyncs between Little and Big Endian machines. Thanks to pv2b for helping me in locating the bug and to Darkvater for figuring out that the arithmetic returned the number of entries instead of bytes.
r2186:5ee653b1b5e1 r2186:5ee653b1b5e1 r430:c6aefd620ab0 r430:c6aefd620ab0 r430:c6aefd620ab0 r430:c6aefd620ab0 r430:c6aefd620ab0 r430:c6aefd620ab0 r430:c6aefd620ab0 r430:c6aefd620ab0 r4184:a139e10be323 r4184:a139e10be323 r4184:a139e10be323 r4184:a139e10be323 r4184:a139e10be323 r4184:a139e10be323 r430:c6aefd620ab0 r4184:a139e10be323 r4184:a139e10be323 r430:c6aefd620ab0 r2121:96bd03691149 r2121:96bd03691149 r2121:96bd03691149 r2121:96bd03691149 r2436:963efe8b84cc | /* $Id$ */
#ifndef SCREENSHOT_H
#define SCREENSHOT_H
void InitializeScreenshotFormats(void);
const char *GetScreenshotFormatDesc(int i);
void SetScreenshotFormat(int i);
typedef enum ScreenshotType {
SC_NONE,
SC_VIEWPORT,
SC_WORLD
} ScreenshotType;
bool MakeScreenshot(void);
void SetScreenshotType(ScreenshotType t);
bool IsScreenshotRequested(void);
extern char _screenshot_format_name[8];
extern uint _num_screenshot_formats;
extern uint _cur_screenshot_format;
#endif /* SCREENSHOT_H */
|