Skip to content

Commit

Permalink
Merge pull request #4166 from ims21/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
littlesat authored Jan 12, 2025
2 parents bd0c8c5 + 3aff3c4 commit 1123a65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/dvb/subtitle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ void eDVBSubtitleParser::subtitle_redraw(int page_id)
palette[i].g = MAX(MIN(((298 * y - 55 * cb - 137 * cr) / 256), 255), 0);
palette[i].b = MAX(MIN(((298 * y + 543 * cb) / 256), 255), 0);
}
if (bcktrans)
if (bcktrans >= 0)
{
if (palette[i].r || palette[i].g || palette[i].b)
palette[i].a = (entries[i].T) & 0xFF;
Expand Down
3 changes: 2 additions & 1 deletion lib/python/Components/UsageConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,8 @@ def quadpip_mode_notifier(configElement):
config.subtitles.dvb_subtitles_original_position = ConfigSelection(default="0", choices=[("0", _("Original")), ("1", _("Fixed")), ("2", _("Relative"))])
config.subtitles.dvb_subtitles_centered = ConfigYesNo(default=False)
config.subtitles.subtitle_bad_timing_delay = ConfigSelection(default="0", choices=subtitle_delay_choicelist)
config.subtitles.dvb_subtitles_backtrans = ConfigSelection(default="0", choices=[
config.subtitles.dvb_subtitles_backtrans = ConfigSelection(default="-1", choices=[
("-1", _("Original")),
("0", _("No transparency")),
("25", "10%"),
("50", "20%"),
Expand Down

0 comments on commit 1123a65

Please sign in to comment.