From bc5b4d4dc178dad75eacb02fd2d4e98c7d3801ec Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 9 Oct 2018 12:08:31 +0100 Subject: swaroop: Add date/time to watermark. --- src/wx/film_viewer.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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 } @@ -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; } -- cgit v1.2.3