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/pngfile.cc
parente942db1c8d87b7db286545d72c604e879f7aeab0 (diff)
Report screenshot filenames on-screen.
Diffstat (limited to 'src/render/pngfile.cc')
-rw-r--r--src/render/pngfile.cc9
1 files changed, 7 insertions, 2 deletions
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);
}
}