Skip to content

Commit

Permalink
Fix is_minimized expression in eye.py on_resize
Browse files Browse the repository at this point in the history
  • Loading branch information
romanroibu committed Sep 14, 2020
1 parent c3f0ef7 commit 01e1917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pupil_src/launchables/eye.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def on_resize(window, w, h):
nonlocal content_scale

framebuffer_size = glfw.glfwGetFramebufferSize(window)
is_minimized = framebuffer_size is not None and 0 in framebuffer_size
is_minimized = any(c <= 0 for c in framebuffer_size)

if not is_minimized:
# Always clear buffers on resize to make sure that there are no overlapping
Expand Down

0 comments on commit 01e1917

Please sign in to comment.