The fullscreen mode in pygame is entirely black
问题 I have some issues with the fullscreen option of pygame. Here is some code that simply draws a blue window and by pressing R we can switch between blue and purple. Then we can also toggle between fullscreen and windowed mode using F or G . F is implemented explicitly and G uses the method toggle_fullscreen(). import pygame, sys from pygame.locals import * #Initializes pygame pygame.init() #Defines the Clock object clock = pygame.time.Clock() #Just draws a blue screen size = (960, 540) blue =