[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Finding the original monitor settings



I think that's what I meant.  The goal here was to make a game run in fullscreen with the same width and height as the original resolution.  That way my program http://www.pygame.org/projects/9/453/?release_id=772 would be unnecessary.  I've seen some games do that.  (selecting resolution automatically).

On 7/16/07, Dave LeCompte (really) <dave@xxxxxxxxxxxx> wrote:
"Rikard Bosnjakovic" <rikard.bosnjakovic@xxxxxxxxx> wrote:
> On 11/07/07, Ian Mallett <geometrian@xxxxxxxxx > wrote:
>
>> I'd like to know how to get the current view settings.
>
> http://www.pygame.org/docs/ref/display.html

I hesitate to put words in his mouth, but I think when he says "current
view", what he was trying to say was that he wanted to know the original
resolution of the primary monitor.

(Re)reading the display docs, I might try pygame.display.get_wm_info() and
see what it told me, but the description makes it sound like it's not
terribly portable or reliable.

I was also hopeful that there might be something relevant in
pygame.display.Info, or pygame.display.list_modes(), but nothing looks
very helpful.


My first reaction when he posted was "of course PyGame doesn't do that,
that's the window manager's responsibility" - which makes me curious; is
there any Python module that does provide access to that sort of
information in a cross-platform way?


Thanks,

-Dave LeCompte