summaryrefslogtreecommitdiff
path: root/screenshot.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-11-28 14:42:31 +0000
committerDarkvater <darkvater@openttd.org>2006-11-28 14:42:31 +0000
commit4e7109113750d383fae9086638c17646f6df74b5 (patch)
tree4cbabbc256d401dc659eee0bfc25178f517648c3 /screenshot.c
parent9253387001aafa9bd996a2e2906732373b20a43a (diff)
downloadopenttd-4e7109113750d383fae9086638c17646f6df74b5.tar.xz
(svn r7274) -Codechange [utf8]: Add input/output unicode support. This actually only changes win32
since it uses UTF16 for file access. To keep os-specific code to a minimum, OpenTTD uses UTF8 internally everywhere, converting to OS-type when needed (save/load/screenshot/etc.)
Diffstat (limited to 'screenshot.c')
-rw-r--r--screenshot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/screenshot.c b/screenshot.c
index 82124ba6d..d205f20a9 100644
--- a/screenshot.c
+++ b/screenshot.c
@@ -76,7 +76,7 @@ static bool MakeBmpImage(const char *name, ScreenshotCallback *callb, void *user
if (pixelformat != 8)
return false;
- f = fopen(OTTD2FS(name), "wb");
+ f = fopen(name, "wb");
if (f == NULL) return false;
// each scanline must be aligned on a 32bit boundary
@@ -180,7 +180,7 @@ static bool MakePNGImage(const char *name, ScreenshotCallback *callb, void *user
if (pixelformat != 8)
return false;
- f = fopen(OTTD2FS(name), "wb");
+ f = fopen(name, "wb");
if (f == NULL) return false;
png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, (char *)name, png_my_error, png_my_warning);
@@ -292,7 +292,7 @@ static bool MakePCXImage(const char *name, ScreenshotCallback *callb, void *user
if (pixelformat != 8 || w == 0)
return false;
- f = fopen(OTTD2FS(name), "wb");
+ f = fopen(name, "wb");
if (f == NULL) return false;
memset(&pcx, 0, sizeof(pcx));