[REGRESSION] Screen does not update until a time function is called when runing a script.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GASP Core |
Fix Released
|
High
|
James Hancock |
Bug Description
See http://
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.
Changed in gasp-code: | |
assignee: | nobody → davelcooper |
importance: | Undecided → High |
milestone: | none → 0.2 |
assignee: | davelcooper → dcooper |
assignee: | dcooper → davidcooper000 |
Changed in gasp-code: | |
importance: | High → Critical |
Changed in gasp-code: | |
assignee: | davidcooper000 → jlhancock |
importance: | Critical → High |
status: | New → Confirmed |
description: | updated |
Changed in gasp-code: | |
status: | Confirmed → Fix Committed |
Changed in gasp-code: | |
status: | Fix Committed → Fix Released |
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.