~ubuntu-branches/ubuntu/lucid/hamster-applet/lucid-proposed

« back to all changes in this revision

Viewing changes to src/hamster/graphics.py

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Klimonda
  • Date: 2010-09-06 01:31:34 UTC
  • mfrom: (1.2.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100906013134-wtzn81wdx5en03cn
Tags: 2.30.2-0ubuntu1
* New upstream release. (LP: #629609)
* Fixes a bug that made hamster-applet always use some of the CPU,
  draining battery. (LP: #620113)

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
 
120
120
    """ animation bits """
121
121
    def __interpolate(self):
122
 
        if not self.window: #will wait until window comes
123
 
            return True
124
 
 
125
 
 
126
122
        time_since_last_frame = (dt.datetime.now() - self.last_frame_time).microseconds / 1000000.0
127
123
        self.tweener.update(time_since_last_frame)
128
124
        self.__drawing_queued = self.tweener.hasTweens()