diff options
author | Stijn Buys <ingar@osirion.org> | 2011-07-09 14:12:51 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2011-07-09 14:12:51 +0000 |
commit | 5b9baa97e65314454005edb1231e18cf0f5bfb43 (patch) | |
tree | 8238aa71f9ed10823f9e6282493031c32a6901be /src/render/pngfile.cc | |
parent | e942db1c8d87b7db286545d72c604e879f7aeab0 (diff) |
Report screenshot filenames on-screen.
Diffstat (limited to 'src/render/pngfile.cc')
-rw-r--r-- | src/render/pngfile.cc | 9 |
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); } } |