screenshot.h
author celestar
Mon, 20 Mar 2006 16:43:48 +0000
changeset 3279 7c642c5c501c
parent 2436 177cb6a8339f
child 4184 f38abcb8b18d
permissions -rw-r--r--
(svn r3992) -Fix: Rewrote the code to determine whether a rail-tile can be terraformed.
Fixes a bug where you could terraform a tunnel (fixed by r3228, but reverted that one)
Fixes a bug introduced by r3228 which allowed steep rail tiles resulting in ... unwanted effects such as display artifacts.
That means the terraform feature should not work as intended; it also uses _valid_tileh_slopes to determine valid configurations instead of hand-brewn stuff.
TODO: _terraform_err_tile and similar TileIndices should have INVALID_TILE as "unused", not 0. (0 is a valid tile).
2186
461a2aff3486 (svn r2701) Insert Id tags into all source files
tron
parents: 2121
diff changeset
     1
/* $Id$ */
461a2aff3486 (svn r2701) Insert Id tags into all source files
tron
parents: 2121
diff changeset
     2
430
75820dedf4f1 (svn r631) Merge r440, r444, r485, r630 to trunk:
tron
parents:
diff changeset
     3
#ifndef SCREENSHOT_H
75820dedf4f1 (svn r631) Merge r440, r444, r485, r630 to trunk:
tron
parents:
diff changeset
     4
#define SCREENSHOT_H
75820dedf4f1 (svn r631) Merge r440, r444, r485, r630 to trunk:
tron
parents:
diff changeset
     5
75820dedf4f1 (svn r631) Merge r440, r444, r485, r630 to trunk:
tron
parents:
diff changeset
     6
void InitializeScreenshotFormats(void);
75820dedf4f1 (svn r631) Merge r440, r444, r485, r630 to trunk:
tron
parents:
diff changeset
     7
75820dedf4f1 (svn r631) Merge r440, r444, r485, r630 to trunk:
tron
parents:
diff changeset
     8
const char *GetScreenshotFormatDesc(int i);
75820dedf4f1 (svn r631) Merge r440, r444, r485, r630 to trunk:
tron
parents:
diff changeset
     9
void SetScreenshotFormat(int i);
75820dedf4f1 (svn r631) Merge r440, r444, r485, r630 to trunk:
tron
parents:
diff changeset
    10
75820dedf4f1 (svn r631) Merge r440, r444, r485, r630 to trunk:
tron
parents:
diff changeset
    11
bool MakeScreenshot(void);
75820dedf4f1 (svn r631) Merge r440, r444, r485, r630 to trunk:
tron
parents:
diff changeset
    12
bool MakeWorldScreenshot(int left, int top, int width, int height, int zoom);
75820dedf4f1 (svn r631) Merge r440, r444, r485, r630 to trunk:
tron
parents:
diff changeset
    13
2121
c86a863485ee (svn r2631) Move screenshot related variables from variables.h to screenshot.[ch]
tron
parents: 430
diff changeset
    14
extern char _screenshot_format_name[8];
c86a863485ee (svn r2631) Move screenshot related variables from variables.h to screenshot.[ch]
tron
parents: 430
diff changeset
    15
extern uint _num_screenshot_formats;
c86a863485ee (svn r2631) Move screenshot related variables from variables.h to screenshot.[ch]
tron
parents: 430
diff changeset
    16
extern uint _cur_screenshot_format;
c86a863485ee (svn r2631) Move screenshot related variables from variables.h to screenshot.[ch]
tron
parents: 430
diff changeset
    17
2436
177cb6a8339f (svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters
Darkvater
parents: 2186
diff changeset
    18
#endif /* SCREENSHOT_H */