[REGRESSION] Screen does not update until a time function is called when runing a script.

Bug #196117 reported by Luke Faraone
6
Affects Status Importance Assigned to Milestone
GASP Core
Fix Released
High
James Hancock

Bug Description

See http://pastebin.ca/920522 for a code example (raw code at http://pastebin.ca/raw/920522 )

When you paste the contents into the python console, you get "foobar" and "barfoo" on top of each other.

If you save the code to "file.py" or any other name, and then execute it via "python file.py", you don't see the text.

Running gasp-0.2-unstable on ubuntu 7.10 on python 2.5

The problem here arose now that gasp updates itself based on pygame's clock and the wait_for() function.

To fix this bug You need to create an attribute belonging to the Screen class that acts as a flag switching from updateType = AUTOMATIC, or WAIT.

the attribute should be initialized as AUTOMATIC

and as soon as a wait_for() function is called it should be changed to WAIT.

Everytime you change the screen in anyway i.e(Move a shape, create a shape, etc..)It should check the flag and see if the screen should update now(AUTOMATIC) or later(WAIT) and either update or ignore updating accordingly.

Tags: regression
Luke Faraone (lfaraone)
Changed in gasp-code:
assignee: nobody → davelcooper
importance: Undecided → High
milestone: none → 0.2
assignee: davelcooper → dcooper
assignee: dcooper → davidcooper000
Luke Faraone (lfaraone)
Changed in gasp-code:
importance: High → Critical
Jeffrey Elkner (jelkner)
Changed in gasp-code:
assignee: davidcooper000 → jlhancock
importance: Critical → High
status: New → Confirmed
description: updated
Revision history for this message
James Hancock (jlhancock) wrote :

I am not sure we should handle a case where it needs to turn back from WAIT after it has been changed.
But, If anyone can think of a case we would need it. We can add it.

Changed in gasp-code:
status: Confirmed → Fix Committed
Changed in gasp-code:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.