I'm just wondering if it is possible for me to get the resolution of a monitor in Pygame and then use these dimensions to create a window so that launching the program detects the monitor resolution and then automatically fits the window to the screen in fullscreen.
I am currently using pygame.display.set_mode((AN_INTEGER, AN_INTEGER))
to create the window.
I am aware that you can get video info including the monitor resolution using pygame.display.Info()
but how can I extract these values and then use them in pygame.display.set_mode()
???
Thanks in advance,
Ilmiont
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…