Micro-optimization

This commit is contained in:
Kovid Goyal
2016-12-02 16:44:05 +05:30
parent 85bbc2173a
commit 7ec41ba7fb
2 changed files with 6 additions and 4 deletions

View File

@@ -67,6 +67,7 @@ def queue_action(func, *args):
is_key_pressed = defaultdict(lambda: False)
mouse_button_pressed = defaultdict(lambda: False)
mouse_cursor_pos = [0, 0]
viewport_size = ViewportSize()
cell_size = ViewportSize()
terminfo_dir = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'terminfo')