diff options
author | amartin <olpc@localhost.localdomain> | 2007-02-09 01:58:04 (GMT) |
---|---|---|
committer | amartin <olpc@localhost.localdomain> | 2007-02-09 01:58:04 (GMT) |
commit | 34df2f3075dad2b2a91d3ad2f7d5201d73ad07b9 (patch) | |
tree | 5c218ac84f2dcd83759edef8af313075e6313524 /Edit/HitInterface.py | |
parent | dbf0e2d924840be32f60611ae7ae8e09111a8740 (diff) |
track delete/duplicate, note delete/duplicate, page predrawing, misc bug fixes
Diffstat (limited to 'Edit/HitInterface.py')
-rw-r--r-- | Edit/HitInterface.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Edit/HitInterface.py b/Edit/HitInterface.py index 1301a33..f8cf691 100644 --- a/Edit/HitInterface.py +++ b/Edit/HitInterface.py @@ -18,10 +18,14 @@ class HitInterface( NoteInterface ): self.updateTransform() def updateTransform( self ): - if self.note.page == self.owner.curPage and not self.firstTransform: - oldX = self.imgX - oldY = self.imgY - oldEndX = self.imgX + self.imgWidth + if self.note.page in self.owner.getActivePages(): + if not self.firstTransform: + oldX = self.imgX + oldY = self.imgY + oldEndX = self.imgX + self.imgWidth + dirty = True + else: + dirty = False if self.note.cs.onset != self.oldOnset: self.x = self.owner.ticksToPixels( self.noteDB.getPage(self.note.page).beats, self.note.cs.onset ) @@ -33,7 +37,7 @@ class HitInterface( NoteInterface ): self.imgY = self.y - Config.NOTE_IMAGE_PADDING self.oldPitch = self.note.cs.pitch - if self.note.page == self.owner.curPage: + if dirty: if self.firstTransform: self.owner.invalidate_rect( self.imgX, self.imgY, self.imgWidth, self.imgHeight, self.note.page ) self.firstTransform = False |