Fix flashing rows with mixed 1Hz and 2Hz rates

This commit is contained in:
G.K.MacGregor
2023-08-06 16:49:44 +01:00
parent 07e0d757bb
commit ba2d1241d0

View File

@@ -280,7 +280,7 @@ void TeletextPageRender::renderRow(int r, int ph, bool force)
if (ph == 0) { if (ph == 0) {
if (m_decoder->cellFlashMode(r, c) != 0) if (m_decoder->cellFlashMode(r, c) != 0)
flashingRow = (m_decoder->cellFlashRatePhase(r, c) == 0) ? 1 : 2; flashingRow = qMax(flashingRow, (m_decoder->cellFlashRatePhase(r, c) == 0) ? 1 : 2);
} else } else
force = m_decoder->cellFlashMode(r, c) != 0; force = m_decoder->cellFlashMode(r, c) != 0;