event methode updates the display

Anonymous avatarAnonymous created an issue

Hello, on my ubuntu, methods events (pump, clear, wait, etc. ..) update the display. it's annoying when you want to keep hidden elements.

from pygame import * screen = display.set_mode((500,500)) screen.fill(-1) time.wait(1000) event.wait() while 1: pass

----------------------------------------

in the same way, display.flip() has not the effect expected if is called too quickly

from pygame import * screen = display.set_mode((500,500)) screen.fill(-1) display.flip() while 1: pass

This only shows a small bit of the display

Comments (3)

  1. Anonymous

    I can not reproduce the described effect. Using this code, the display is updated to show red. If you change the "display.flip()" back to "pass" then the screen is not updated, and remains black.

    from pygame import * screen = display.set_mode((500,500)) screen.fill((255,0,0)) time.wait(1) event.wait() while 1: display.flip()

    I also don't see a problem with the second example, it updates the screen to display white.

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.