Avoid extra function call when waking up for cursor blink rendering
This commit is contained in:
parent
3274327fe7
commit
0aecae288f
@ -60,10 +60,6 @@ class Timers(_Timers):
|
|||||||
return _Timers.remove_event(self, timer)
|
return _Timers.remove_event(self, timer)
|
||||||
|
|
||||||
|
|
||||||
def wakeup_for_cursor_blink_render():
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class DumpCommands: # {{{
|
class DumpCommands: # {{{
|
||||||
|
|
||||||
def __init__(self, args):
|
def __init__(self, args):
|
||||||
@ -408,7 +404,7 @@ class Boss:
|
|||||||
n = t // d
|
n = t // d
|
||||||
draw_cursor = n % 2 == 0
|
draw_cursor = n % 2 == 0
|
||||||
self.ui_timers.add_if_before(
|
self.ui_timers.add_if_before(
|
||||||
((n + 1) * d / 1000) - now, wakeup_for_cursor_blink_render)
|
((n + 1) * d / 1000) - now, None)
|
||||||
if draw_cursor:
|
if draw_cursor:
|
||||||
with self.cursor_program:
|
with self.cursor_program:
|
||||||
active.char_grid.render_cursor(
|
active.char_grid.render_cursor(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user