We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0cdb7e commit 6c11af6Copy full SHA for 6c11af6
SnakeGame/snake.py
@@ -54,7 +54,7 @@ def display():
54
def win_focus():
55
# Ugly trick to get the window in focus.
56
# Opens an image in fullscreen and then back to normal window
57
- cv2.namedWindow("Snake Game", cv2.WINDOW_NORMAL);
+ cv2.namedWindow("Snake Game", cv2.WINDOW_AUTOSIZE);
58
board = np.zeros([BOARD_SIZE * CELL_SIZE, BOARD_SIZE * CELL_SIZE, 3])
59
cv2.imshow("Snake Game", board);
60
cv2.setWindowProperty("Snake Game", cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN);
0 commit comments