FULLSCREEN and DOUBLEBUF
Richard Damon
Richard at Damon-Family.org
Sat Jun 9 16:03:46 EDT 2018
On 6/9/18 3:31 PM, Paul St George wrote:
> So...
>
> print pygame.display.get_surface()
> gives
> <Surface(720x480x32 SW)>
>
> and
> print screen.get_flags()
> gives
> -2147483648
>
> The lists of flags at
> <https://www.pygame.org/docs/ref/surface.html#pygame.Surface.get_flags>
> and
> <http://www.rpi.edu/dept/acm/packages/SDL/1.2.6/include/SDL/SDL_video.h>
>
> has nothing remotely like -2147483648. I would expect something more
> like 0x40000000
>
> Am I using the wrong code to determine whether I have successfully set
> DOUBLEBUF with
>
> screen = pygame.display.set_mode((720,480), pygame.FULLSCREEN |
> pygame.DOUBLEBUF)
>
> AND
>
> What does -2147483648 tell me? Does this number need converting?
That number is printed in Decimal, the listing gives it in hex. If you
convert the number to hex you get
0x80000000
--
Richard Damon
More information about the Python-list
mailing list