Yes, it seems pygame can detect various settings on your display.
The first thing to watch is this link here , reading should give you a lot of information on how pygame can help you with display modes. The How to Solve section is likely to be most useful to you.
After reading, you should go to this link here . You will see in the fourth paragraph after the links:
If precise control by pixel format or resolution display is required, use the functions pygame.display.mode_ok (), pygame.display.list_modes () and pygame.display.Info () to request display information.
So itβs best to read how to use and play with them to see how information is returned and used.
source share