diff options
author | smlee <smlee@dev3> | 2016-04-26 07:42:42 (GMT) |
---|---|---|
committer | smlee <smlee@dev3> | 2016-04-26 08:32:41 (GMT) |
commit | 004d6db4a1dda8f08f5ce63f30c102c81b7b0693 (patch) | |
tree | 7e7875c0cf31c7957332c99c3ca0577643036e38 /lib/dvb | |
parent | 814b8ce842acf21087a4ec2b56fd3102e698fb08 (diff) |
[Subtitle] added rewrap option for TTX subtitle.
Diffstat (limited to 'lib/dvb')
-rw-r--r-- | lib/dvb/teletext.cpp | 9 |
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() |