I'm discovering Pygame and stuck on some problematic behavior that I can't figure out.
I am trying to refresh a 80px square in the center of the window with the code below, but the whole line turns blue instead of the square only as expected. Is this normal behavior, and can someone help me understand why this is happening please?
Using pygame 2.1.3 / python 3.11.1 / macOS 13.1
import pygame
pygame.init()
screen = pygame.display.set_mode((400, 400))
screen.fill((255,0,0))
pygame.display.update(((160,160,80,80)))