Browse files

Fix EIA-608 caption color.

Fix the color for EIA-608 captions, by fixing a min/max transposition.
Since 99.99993% of all 608 captions are white, this change is unlikely
to be noticed by anyone (and also explains why no one noticed the
transposition).
  • Loading branch information...
1 parent eda0880 commit 85a5266e1218adac5e61839a2eab2afe2ea6a419 @sphery sphery committed Apr 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/libs/libmythtv/subtitlescreen.cpp
View
2 mythtv/libs/libmythtv/subtitlescreen.cpp
@@ -623,7 +623,7 @@ void SubtitleScreen::DisplayCC608Subtitles(void)
shape->SetArea(MythRect(bgrect));
}
- gTextSubFont->SetColor(clr[max(min(0, cc->color), 7)]);
+ gTextSubFont->SetColor(clr[min(max(0, cc->color), 7)]);
MythUIText *text = new MythUIText(
cc->text, *gTextSubFont, rect, rect, (MythUIType*)this,
QString("cc608txt%1%2%3").arg(cc->x).arg(cc->y).arg(width));

0 comments on commit 85a5266

Please sign in to comment.