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

Re: [pygame] Finding the original monitor settings



...using pygame 2.4.

On 7/17/07, Ian Mallett <geometrian@xxxxxxxxx> wrote:
import pygame
pygame.init()
screen = pygame.display.set_mode((0, 0))
pygame.time.wait(5000)

...gives an error:  "error: Cannot set 0 sized display mode"


On 7/17/07, Greg Ewing <greg.ewing@xxxxxxxxxxxxxxxx> wrote:
Ian Mallett wrote:
> 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.

I think in recent versions of SDL, you can pass (0, 0) for
a screen size to have it use the current size. But last time
I tried, pygame hadn't caught up with that feature. I don't
know whether that's changed since.

--
Greg