Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/game1
diff options
context:
space:
mode:
Diffstat (limited to 'game1')
-rwxr-xr-xgame1/tracktmx.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/game1/tracktmx.py b/game1/tracktmx.py
index 51d76d7..d57caf2 100755
--- a/game1/tracktmx.py
+++ b/game1/tracktmx.py
@@ -51,7 +51,10 @@ class Track():
self.cached_height = 0
else:
# scroll offset difference
- self.cached_surface.scroll(0, -int(offset - self.cached_offset))
+ # self.cached_surface.scroll(0, -int(offset - self.cached_offset))
+ yoff = int(offset - self.cached_offset)
+ area = pygame.Rect(0, yoff, self.cached_surface.get_width(), self.cached_surface.get_height() - yoff )
+ self.cached_surface.blit(self.cached_surface, (0, 0), area)
self.cached_height -= int(offset - self.cached_offset)
if self.cached_height < 0:
self.cached_height = 0
@@ -226,4 +229,4 @@ class Track():
def number_of_even(self):
return self.num_even
- \ No newline at end of file
+