diff options
author | Wade Brainerd <wadetb@gmail.com> | 2009-04-05 18:04:53 (GMT) |
---|---|---|
committer | Wade Brainerd <wadetb@gmail.com> | 2009-04-05 18:04:53 (GMT) |
commit | a7bdd950b0d422b9d7e176aa10740884fa71fbff (patch) | |
tree | ac15cb7d34e3f047bd4bd15f99a8011f776dbf5e /symbolobject.py | |
parent | 2c1f91f3117407543e3f78cdb8b9bef73a93a09a (diff) |
Implemented partial refresh. When objects move, they only redraw the areas of the screen that they cover.
Still needs lots of work fixing all the get_bounds methods, and implementing those that are missing.
Also removed some unused functions from Object.
Diffstat (limited to 'symbolobject.py')
-rw-r--r-- | symbolobject.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/symbolobject.py b/symbolobject.py index 2f30e96..6150fe9 100644 --- a/symbolobject.py +++ b/symbolobject.py @@ -103,6 +103,8 @@ class SymbolObject(DraggableObject): return True
def move(self, pos):
+ self.queue_draw()
+
# Tentatively place in the object in the new position
last_pos = self.pos
self.pos = pos
@@ -111,8 +113,7 @@ class SymbolObject(DraggableObject): if not self.is_in_container():
self.pos = last_pos
- if self.container:
- self.container.queue_draw()
+ self.queue_draw()
def get_bounds(self):
hsz = Vector(self.width/2, self.height/2)
|