diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-10-09 12:08:31 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-10-09 12:08:31 +0100 |
| commit | bc5b4d4dc178dad75eacb02fd2d4e98c7d3801ec (patch) | |
| tree | b02893f2e9db32fb6b0258f39b62455e3fbe3244 | |
| parent | 901f3ffd00dc51d17ce5d3f7a97587e0419170bb (diff) | |
swaroop: Add date/time to watermark.
| -rw-r--r-- | src/wx/film_viewer.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index 54de78f27..1a0e30bf4 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -43,6 +43,7 @@ #include "lib/butler.h" #include "lib/log.h" #include "lib/config.h" +#include "lib/compose.hpp" extern "C" { #include <libavutil/pixfmt.h> } @@ -342,7 +343,10 @@ FilmViewer::paint_panel () _watermark_y = rand() % _panel_size.height; } dc.SetTextForeground(*wxWHITE); - dc.DrawText(std_to_wx(Config::instance()->player_watermark_theatre()), _watermark_x, _watermark_y); + string wm = Config::instance()->player_watermark_theatre(); + boost::posix_time::ptime t = boost::posix_time::second_clock::local_time(); + wm += "\n" + boost::posix_time::to_iso_extended_string(t); + dc.DrawText(std_to_wx(wm), _watermark_x, _watermark_y); } else { _in_watermark = false; } |
