On 9/25/06, John Eriksson <[EMAIL PROTECTED]> wrote:
Hi, Is there a way to determine the desktops current screen resolution?
From within pygame, I don't know of a way. If you have PIL (Python
Imaging Library) installed, and run under Windows, you can use it like this: # ----- import ImageGrab desktop_size = ImageGrab.grab().size # (width, height) # ------- Not very portable (since it's a Windows-only solution) and not very Pygame-ish, but it works. -- - Rikard.