'when I turn to fullscreen my pygame window, the screen fill option dosen't fill the whole screen

import pygame
pygame.init()

height=1000
width=600
screen = pygame.display.set_mode((height, width), pygame.RESIZABLE)
pygame.display.set_caption("𝕤𝕜𝕪")
screen.fill(color='#0093ad')
pygame.display.flip()

run = True
while run:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            run = False

when I try to run this code, it will only fill the area that was already filled when it was minimized and will not fill the screen when I maximize the window.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source