]> git.sesse.net Git - nageru/blobdiff - nageru/timecode_renderer.cpp
IWYU-fix nageru/*.cpp.
[nageru] / nageru / timecode_renderer.cpp
index 254ece7a3c2c2806bb26bba8a3f6358763d00cae..745e6cab1dbea22678654fb7f1e2c5b00339197d 100644 (file)
@@ -1,14 +1,20 @@
 #include "timecode_renderer.h"
 
+#include <assert.h>
+#include <math.h>
+#include <stdio.h>
+#include <time.h>
+#include <epoxy/gl.h>
 #include <memory>
 #include <string>
 #include <vector>
 
+#include <QFont>
 #include <QImage>
+#include <QPaintDevice>
 #include <QPainter>
 
 #include <epoxy/gl.h>
-#include <movit/effect_util.h>
 #include <movit/resource_pool.h>
 #include <movit/util.h>
 #include <sys/time.h>
@@ -94,7 +100,7 @@ string TimecodeRenderer::get_timecode_text(double pts, unsigned frame_num)
        unsigned stream_time_hour = stream_time / 60;
 
        char timecode_text[512];
-       snprintf(timecode_text, sizeof(timecode_text), "Nageru - %s.%03u UTC - Stream time %02u:%02u:%02u.%03u (frame %u)",
+       snprintf(timecode_text, sizeof(timecode_text), "Nageru " NAGERU_VERSION " - %s.%03u UTC - Stream time %02u:%02u:%02u.%03u (frame %u)",
                clock_text, msecs, stream_time_hour, stream_time_min, stream_time_sec, stream_time_ms, frame_num);
        return timecode_text;
 }
@@ -112,6 +118,7 @@ void TimecodeRenderer::render_string_to_buffer(const string &text)
 
        painter.setPen(Qt::white);
        QFont font = painter.font();
+       font.setFamily("Noto Sans");
        font.setPointSize(16);
        painter.setFont(font);