FULLSCREEN and DOUBLEBUF

Paul St George email at paulstgeorge.com
Sun Jun 10 13:45:05 EDT 2018


> Paul St George wrote:
>
>> So...
>>
>>       print pygame.display.get_surface()
>> gives
>> <Surface(720x480x32 SW)>
>>
>> and
>>       print screen.get_flags()
>> gives
>> -2147483648
>> To recap: this thread started with a question. How do I know whether
>> DOUBLEBUF has been set with:
>>
>> screen = pygame.display.set_mode((720,480), pygame.DOUBLEBUF |
>> pygame.FULLSCREEN)
On 10/06/2018 16:38, Peter Otten wrote:
> flags = screen.get_flags()
> if flags & pygame.DOUBLEBUF:
>      print("DOUBLEBUF has been set")
> if flags & pygame.FULLSCREEN:
>      print("FULLSCREEN has been set")
>
> See the pattern?
I do. I do. And also, I now know for certain that DOUBLEBUF is not being 
set.
The insights about flags will take more time to digest. Thank you for both!



More information about the Python-list mailing list