Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Edit/TuneInterface.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2012-06-06 18:00:10 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2012-06-06 18:00:10 (GMT)
commit099ce81a80c3aff188dfff5042573c9786a0e033 (patch)
tree19a17d6360e4235badff97d2bd469988ee958fda /Edit/TuneInterface.py
parent89f84e1cebbc9b6dcf7fa9ce1f21553367c44bb5 (diff)
Use down scaled images if one of screen dimensions is 800 or less
Diffstat (limited to 'Edit/TuneInterface.py')
-rw-r--r--Edit/TuneInterface.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Edit/TuneInterface.py b/Edit/TuneInterface.py
index 4702a6d..2090855 100644
--- a/Edit/TuneInterface.py
+++ b/Edit/TuneInterface.py
@@ -156,6 +156,9 @@ class TuneInterface( gtk.EventBox ):
self.pixelsPerPitchDrum = float(self.trackRect[self.drumIndex][3]-1)/(Config.MAXIMUM_PITCH_DRUM - Config.MINIMUM_PITCH_DRUM )
self.pixelsPerTick = [0] + [ float(self.trackRect[0][2]-4)/(i*Config.TICKS_PER_BEAT) for i in range(1,Config.MAXIMUM_BEATS+1) ]
+ import logging
+ logging.error('> %r %r %r', self.pixelsPerPitch, self.pixelsPerPitchDrum, self.pixelsPerTick)
+
self.alloced = False
self.width = self.baseWidth = self.height = -1
self.waitingForAlloc = True