I am working on a 2020 M1 Macbook Air running macOS BigSur Version 11.2.3 with Python 3.9, PyGame 2.0.0 installed.
The display has a resolution of 2560x1600. PyGame also seems to know this, because print(pygame.display.list_modes()) lists (2560, 1600), (2048, 1280), ....
But when I set the window size with screen = pygame.display.set_mode((2560, 1600)) the contents in the window is pixelated, so I am guessing something is wrong with the dpi.
Also, the Window is way too large and does not fit the screen, approximately the size has doubled. In Fullscreen the correct resolution does work.
This also happens on an external screen: At 1920x1080 the window exactly fits my 4K screen.
I experienced a similar problem on Windows, but this could be fixed with ctypes.windll.user32.SetProcessDPIAware(). Maybe this problem has a similar origin?
I did not find any information on the issue, so I could imagine it only happens only on M1/ Apple Silicon machines.
Anyways thanks for any help!