I'm fairly new to pygame and I'm working on making a tic tac toe game. So far I've added a 220 x 221 image of a tic tac toe board as a layer over a pygame window. My issue is that I originally had the window set to 1200 x 800 (I was messing around with the window before I started working on the game) and when I added the image over the window, it appeared instantly without a problem. I decided to change the window size down to 220 x 221 to fit the picture but once I did that, the picture wouldn't load/appear. I tried random sizes for the window such as 820 x 821 but the image still wouldn't show. I've also tried other IDE's that came with the OS installed on my Raspberry pi but It would only show on a 1200 x 800 window. Here's my non-functioning code so far:
import pygame
pygame.init()
black = (0,0,0)
board = pygame.image.load(r'/home/pi/Pictures/TicTacToeBoard.jpg')
display = pygame.display.set_mode((220, 221))
while True:
display.fill(black)
display.blit(board, (0,0))
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
quit()