Commit 3d940d14 authored by Taddeus Kroes's avatar Taddeus Kroes

Fixed moving window crash in Windows.

parent 5af6a130
...@@ -95,7 +95,7 @@ def create_context_window(w, h, callback): ...@@ -95,7 +95,7 @@ def create_context_window(w, h, callback):
root.set_position(*event.get_coords()) root.set_position(*event.get_coords())
root.set_size(event.width, event.height) root.set_size(event.width, event.height)
overlay.set_size(event.width, event.height) overlay.set_size(event.width, event.height)
draw() refresh()
def handle_key(win, event): def handle_key(win, event):
"""Handle key event. 'f' toggles fullscreen, 'q' exits the program, 'b' """Handle key event. 'f' toggles fullscreen, 'q' exits the program, 'b'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment