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