Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-07-09 14:12:51 +0000
committerStijn Buys <ingar@osirion.org>2011-07-09 14:12:51 +0000
commit5b9baa97e65314454005edb1231e18cf0f5bfb43 (patch)
tree8238aa71f9ed10823f9e6282493031c32a6901be /src/render
parente942db1c8d87b7db286545d72c604e879f7aeab0 (diff)
Report screenshot filenames on-screen.
Diffstat (limited to 'src/render')
-rw-r--r--src/render/jpgfile.cc9
-rw-r--r--src/render/pngfile.cc9
-rw-r--r--src/render/tgafile.cc9
3 files changed, 21 insertions, 6 deletions
diff --git a/src/render/jpgfile.cc b/src/render/jpgfile.cc
index 890c543..25093b0 100644
--- a/src/render/jpgfile.cc
+++ b/src/render/jpgfile.cc
@@ -14,9 +14,10 @@ http://www.zarb.org/~gc/html/libpng.html
#include <cstring>
#include <iostream>
+#include "sys/sys.h"
#include "filesystem/filesystem.h"
#include "render/jpgfile.h"
-#include "sys/sys.h"
+#include "core/application.h"
// work-around for a jpeglib problem, needed on win32 and osx
#ifdef HAVE_STDLIB_H
@@ -114,7 +115,11 @@ void JPG::save(const char *filename, Image & image, int jpeg_quality)
jpeg_destroy_compress(&jpeg_compression_info);
- con_print << "Wrote " << filename << std::endl;
+ //con_print << "Wrote " << filename << std::endl;
+ std::string message;
+ message.assign("Wrote ");
+ message.append(filename);
+ core::application()->notify_message(core::Message::Info, message);
}
}
diff --git a/src/render/pngfile.cc b/src/render/pngfile.cc
index ca8c8d5..da786ec 100644
--- a/src/render/pngfile.cc
+++ b/src/render/pngfile.cc
@@ -17,9 +17,10 @@ http://www.zarb.org/~gc/html/libpng.html
#include <iostream>
+#include "sys/sys.h"
#include "filesystem/filesystem.h"
#include "render/pngfile.h"
-#include "sys/sys.h"
+#include "core/application.h"
namespace render
{
@@ -193,7 +194,11 @@ void PNG::save(const char *filename, Image & image)
fclose(png_file);
png_destroy_write_struct(&png_ptr, &info_ptr);
- con_print << "Wrote " << filename << std::endl;
+ //con_print << "Wrote " << filename << std::endl;
+ std::string message;
+ message.assign("Wrote ");
+ message.append(filename);
+ core::application()->notify_message(core::Message::Info, message);
}
}
diff --git a/src/render/tgafile.cc b/src/render/tgafile.cc
index 0f5833e..efb86e9 100644
--- a/src/render/tgafile.cc
+++ b/src/render/tgafile.cc
@@ -31,9 +31,10 @@
#include <sstream>
#include <string>
+#include "sys/sys.h"
#include "filesystem/filesystem.h"
#include "render/tgafile.h"
-#include "sys/sys.h"
+#include "core/application.h"
const unsigned char TGA_NONE = 0;
const unsigned char TGA_TRUECOLOR = 2;
@@ -361,7 +362,11 @@ void TGA::save(const char *filename, Image & image)
// close file
ofs.close();
- con_print << "Wrote " << filename << std::endl;
+ //con_print << "Wrote " << filename << std::endl;
+ std::string message;
+ message.assign("Wrote ");
+ message.append(filename);
+ core::application()->notify_message(core::Message::Info, message);
}
}