Browse Source

Fixed moving window crash in Windows.

Taddeus Kroes 13 năm trước cách đây
mục cha
commit
3d940d14de
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tests/testapp.py

+ 1 - 1
tests/testapp.py

@@ -95,7 +95,7 @@ def create_context_window(w, h, callback):
         root.set_position(*event.get_coords())
         root.set_size(event.width, event.height)
         overlay.set_size(event.width, event.height)
-        draw()
+        refresh()
 
     def handle_key(win, event):
         """Handle key event. 'f' toggles fullscreen, 'q' exits the program, 'b'