Add dither to mosaic manipulating keypresses

This commit is contained in:
G.K.MacGregor
2022-11-06 18:42:14 +00:00
parent 06e0b401ca
commit 213eace512
3 changed files with 14 additions and 6 deletions

View File

@@ -106,6 +106,8 @@ ToggleMosaicBitCommand::ToggleMosaicBitCommand(TeletextDocument *teletextDocumen
m_oldCharacter = teletextDocument->currentSubPage()->character(m_row, m_column);
if (bitToToggle == 0x20 || bitToToggle == 0x7f)
m_newCharacter = bitToToggle;
else if (bitToToggle == 0x66)
m_newCharacter = (m_row & 1) ? 0x66 : 0x39;
else
m_newCharacter = m_oldCharacter ^ bitToToggle;