[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] surface.get_flags() and pygame.FULLSCREEN
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] surface.get_flags() and pygame.FULLSCREEN
- From: "René Dudfield" <renesd@xxxxxxxxx>
- Date: Wed, 26 Nov 2008 23:55:11 +1100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Wed, 26 Nov 2008 07:55:16 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=HUOS91QlfKy/seSBFmgCFNbAiNUNoZ16xjDdSmNXtZc=; b=ak8fGQxtPJJZVEe3kAi71UqDBHHc8Tfum12gtW0bSJRzuWv4XX5Iwxqk5Nu9RJC1Vc TAIT1iFuhEsQsYhYmE2t/1qgq4d4zjDMtUBUJbhF6ZQUM3rINmCu9AN4EUzKLNtiZ71r jn5FD/lavhQJ8lccowGErxxcCWEfG/iCkTsCE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=PRbrQpeBgnev2z998vuBvCSEcPg3Jxurp5M6tD6Vx2HooUokeYstaPYUQzPSZZgHDq x9SW7gbqNDuL2l8zrQcXWlFYwBYXuldWyhKIvpRtAJ2dC31u/IbeTL83OTZGkkjUq08j XN01TQQ78Q+viQV0tTvBpHi2IYADbd2sL2bT8=
- In-reply-to: <492D3486.6060902@xxxxxxxxxx>
- References: <492D3486.6060902@xxxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
hi,
I think you can just do (surface.get_flags() & pygame.FULLSCREEN).
Not entirely sure though...
cu.
On Wed, Nov 26, 2008 at 10:35 PM, "Jørgen P. Tjernø" <jorgen@xxxxxxxxxx> wrote:
> Hey!
>
> Are you supposed to be able to test the "current" fullscreen state of the
> window you've created by using (surface.get_flags() & pygame.FULLSCREEN) ==
> pygame.FULLSCREEN?
>
> Because in my tests on pygame 1.7.1release-4.1ubuntu1, it doesn't.
>
> To reproduce it, do as follows:
>
> * Download the attached script, and change the resolution (1024, 768) to
> your monitors native resolution (so it won't have to change modes all the
> time).
> * Start the program, and don't press anything
> * SSH to your machine from another (so the fullscreen app still has focus),
> and start some fullscreen app that takes focus, e.g. mplayer (I use this
> command: DISPLAY=:0 mplayer -fs /tmp/series/RedAlert3RemixHD.mov -ao null)
> * Quit the fullscreen app (mplayer or whatever).
>
> Now, it takes a few seconds for pygame to retake fullscreen mode (why is
> this?), but my prgoram NEVER prints "LOST FULLSCREEN".
>
> Why is that? Is this a bug?
>
> Ps. Press ESCAPE to exit test.py.
>
> --
> Kindest regards, Jørgen P. Tjernø.
>