summaryrefslogtreecommitdiff
path: root/src/screenshot.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2014-04-27 15:13:46 +0000
committerfrosch <frosch@openttd.org>2014-04-27 15:13:46 +0000
commitebd2d3ccef7babead511b133d78654ea2ca38343 (patch)
tree3ddb28b9e1aecc0f048679e0d55f2a25349f29cd /src/screenshot.cpp
parent08660e6ea6c2741e92dd92095be6b233910f4eb7 (diff)
downloadopenttd-ebd2d3ccef7babead511b133d78654ea2ca38343.tar.xz
(svn r26525) -Remove: Screenshot format setting from GUI.
Diffstat (limited to 'src/screenshot.cpp')
-rw-r--r--src/screenshot.cpp39
1 files changed, 3 insertions, 36 deletions
diff --git a/src/screenshot.cpp b/src/screenshot.cpp
index 6882e0905..4921378f8 100644
--- a/src/screenshot.cpp
+++ b/src/screenshot.cpp
@@ -64,10 +64,8 @@ typedef bool ScreenshotHandlerProc(const char *name, ScreenshotCallback *callb,
/** Screenshot format information. */
struct ScreenshotFormat {
- const char *name; ///< Name of the format.
const char *extension; ///< File extension.
ScreenshotHandlerProc *proc; ///< Function for writing the screenshot.
- bool supports_32bpp; ///< Does this format support 32bpp images?
};
/*************************************************
@@ -573,10 +571,10 @@ static bool MakePCXImage(const char *name, ScreenshotCallback *callb, void *user
/** Available screenshot formats. */
static const ScreenshotFormat _screenshot_formats[] = {
#if defined(WITH_PNG)
- {"PNG", "png", &MakePNGImage, true},
+ {"png", &MakePNGImage},
#endif
- {"BMP", "bmp", &MakeBMPImage, true},
- {"PCX", "pcx", &MakePCXImage, false},
+ {"bmp", &MakeBMPImage},
+ {"pcx", &MakePCXImage},
};
/** Get filename extension of current screenshot file format. */
@@ -600,37 +598,6 @@ void InitializeScreenshotFormats()
}
/**
- * Give descriptive name of the screenshot format.
- * @param i Number of the screenshot format.
- * @return String constant describing the format.
- */
-const char *GetScreenshotFormatDesc(int i)
-{
- return _screenshot_formats[i].name;
-}
-
-/**
- * Determine whether a certain screenshot format support 32bpp images.
- * @param i Number of the screenshot format.
- * @return true if 32bpp is supported.
- */
-bool GetScreenshotFormatSupports_32bpp(int i)
-{
- return _screenshot_formats[i].supports_32bpp;
-}
-
-/**
- * Set the screenshot format to use.
- * @param i Number of the format.
- */
-void SetScreenshotFormat(uint i)
-{
- assert(i < _num_screenshot_formats);
- _cur_screenshot_format = i;
- strecpy(_screenshot_format_name, _screenshot_formats[i].extension, lastof(_screenshot_format_name));
-}
-
-/**
* Callback of the screenshot generator that dumps the current video buffer.
* @see ScreenshotCallback
*/