This commit is contained in:
Kovid Goyal 2016-12-10 09:38:18 +05:30
parent 0a13899571
commit b3c9763519
2 changed files with 3 additions and 6 deletions

View File

@ -201,7 +201,7 @@ def render_cell(text=' ', bold=False, italic=False, underline=0, strikethrough=F
bitmap_char, second = split_char_bitmap(bitmap_char)
second = place_char_in_cell(second)
else:
second = render_cell()
second = render_cell()[0]
first = place_char_in_cell(bitmap_char)

View File

@ -83,11 +83,8 @@ class Sprites:
def render_cell(self, text, bold, italic, is_second):
first, second = render_cell(text, bold, italic)
if is_second:
ans = second or first
else:
ans = first
return ans or render_cell()
ans = (second or first) if is_second else first
return ans or render_cell()[0]
def render_dirty_cells(self):
with self.lock: