FULLSCREEN and DOUBLEBUF
> On 08/06/18 09:00, Paul St George wrote:
>> Excellent. Now I know what to do in this instance and I understand
>> the principle.
>> I hesitantly tried this:
>> ???? screen = pygame.display.set_mode((720,480), pygame.FULLSCREEN |
>> Hesitantly because I expected the *bitwise or operator* (|) to work
>> like a toggle, so FULLSCREEN or DOUBLEBUF.
On 08/06/2018 12:52, Rhodri James wrote:
> The bitwise OR operator peforms a bitwise OR, i.e. *both* flags get set.
>> No errors were reported, but how would I check that DOUBLEBUF had
>> been set? Is there a general rule, such as replace 'set_something'
>> with 'get_something'?
> There's documentation.? The link Chris gave you for
> pygame.display.set_mode() tells you that you get a Surface out of it.
> Reaching for the docs for that, this leaps out:
??? print pygame.display.get_surface()
??? print screen.get_flags()
The lists of flags at
has nothing remotely like -2147483648. I would expect something more
Am I using the wrong code to determine whether I have successfully set
??? screen = pygame.display.set_mode((720,480), pygame.FULLSCREEN |
What does -2147483648 tell me? Does this number need converting?