Files
@ r3016:b28a60dfd364
Branch filter:
Location: cpp/openttd-patchpack/source/screenshot.h - annotation
r3016:b28a60dfd364
420 B
text/x-c
(svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion
This increases the execution speed a lot since GCC can't detect the OTTD macro as an endian conversion
while Apple's code uses the instruction to convert endian instead of a series of instructions to produce the same result
Since we don't have that many endian conversions in the game, overall performance should not increase noteworthy
This increases the execution speed a lot since GCC can't detect the OTTD macro as an endian conversion
while Apple's code uses the instruction to convert endian instead of a series of instructions to produce the same result
Since we don't have that many endian conversions in the game, overall performance should not increase noteworthy
r2186:5ee653b1b5e1 r2186:5ee653b1b5e1 r430:c6aefd620ab0 r430:c6aefd620ab0 r430:c6aefd620ab0 r430:c6aefd620ab0 r430:c6aefd620ab0 r430:c6aefd620ab0 r430:c6aefd620ab0 r430:c6aefd620ab0 r430:c6aefd620ab0 r430:c6aefd620ab0 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);
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 */
|