Skip to content

Commit 6c11af6

Browse files
committed
changing window to autosize
1 parent a0cdb7e commit 6c11af6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SnakeGame/snake.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def display():
5454
def win_focus():
5555
# Ugly trick to get the window in focus.
5656
# Opens an image in fullscreen and then back to normal window
57-
cv2.namedWindow("Snake Game", cv2.WINDOW_NORMAL);
57+
cv2.namedWindow("Snake Game", cv2.WINDOW_AUTOSIZE);
5858
board = np.zeros([BOARD_SIZE * CELL_SIZE, BOARD_SIZE * CELL_SIZE, 3])
5959
cv2.imshow("Snake Game", board);
6060
cv2.setWindowProperty("Snake Game", cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN);

0 commit comments

Comments
 (0)