1. pygame
  2. Untitled project
  3. pygame

Issues

Issue #126 invalid

event methode updates the display

Anonymous 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