summaryrefslogtreecommitdiff
path: root/lib/dvb
diff options
context:
space:
mode:
authorsmlee <smlee@dev3>2016-04-26 07:42:42 (GMT)
committersmlee <smlee@dev3>2016-04-26 08:32:41 (GMT)
commit004d6db4a1dda8f08f5ce63f30c102c81b7b0693 (patch)
tree7e7875c0cf31c7957332c99c3ca0577643036e38 /lib/dvb
parent814b8ce842acf21087a4ec2b56fd3102e698fb08 (diff)
[Subtitle] added rewrap option for TTX subtitle.
Diffstat (limited to 'lib/dvb')
-rw-r--r--lib/dvb/teletext.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/dvb/teletext.cpp b/lib/dvb/teletext.cpp
index 40650c0..6a3daa8 100644
--- a/lib/dvb/teletext.cpp
+++ b/lib/dvb/teletext.cpp
@@ -659,6 +659,14 @@ void eDVBTeletextParser::connectNewPage(const Slot1<void, const eDVBTeletextSubt
void eDVBTeletextParser::addSubtitleString(int color, std::string string, int source_line)
{
+#if 1
+ const gRGB pal[8] = { gRGB(102, 102, 102), gRGB(255, 0, 0), gRGB(0, 255, 0), gRGB(255, 255, 0),
+ gRGB(102, 102, 255), gRGB(255, 0, 255), gRGB(0, 255, 255), gRGB(255, 255, 255) };
+
+ if (string.empty()) return;
+
+ m_subtitle_page.m_elements.push_back(eDVBTeletextSubtitlePageElement(pal[color], string, source_line));
+#else
// eDebug("(%d)add subtitle string: %s, col %d", m_Y, string.c_str(), color);
int force_cell = 0;
@@ -689,6 +697,7 @@ void eDVBTeletextParser::addSubtitleString(int color, std::string string, int so
m_subtitle_color = color;
m_subtitle_text += string;
}
+#endif
}
void eDVBTeletextParser::sendSubtitlePage()