Reduce num of bits used for x/y multicell

This commit is contained in:
Kovid Goyal
2025-02-19 05:53:07 +05:30
parent e60b95d219
commit bedc2ea1b9
3 changed files with 12 additions and 6 deletions

View File

@@ -129,9 +129,14 @@ def test_multicell(self: TestMulticell) -> None:
for x in range(1, 3):
comb(x, y)
comb(0, 1)
s = self.create_screen(cols=7 * 7, lines=7)
multicell(s, 'a', scale=7, width=7)
for y in range(s.lines):
for x in range(s.columns):
ac(x, y, is_multicell=True, x=x, y=y)
# Test wrapping
s.reset()
s = self.create_screen(cols=6, lines=6)
s.draw('x' * (s.columns - 1))
multicell(s, 'a', scale=2)
ac(s.columns - 1, 0, is_multicell=False, text='', next_char_was_wrapped=True)