Skip to content

Commit

Permalink
This fixes the replacement fx bug
Browse files Browse the repository at this point in the history
(it would crash when trying to fix the scaling)
  • Loading branch information
erodozer committed Nov 24, 2010
1 parent fc2e81f commit 15d6230
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Rockmeter.py
Expand Up @@ -453,9 +453,9 @@ def fixScale(self):
#this allows you to scale images in relation to pixels instead
#of percentage of the size of the image.
if "xscale" in self.layer.inPixels:
scale[0] /= self.layer.texture.pixelSize[0]
scale[0] /= self.layer.drawing.pixelSize[0]
if "yscale" in self.layer.inPixels:
scale[1] /= self.layer.texture.pixelSize[1]
scale[1] /= self.layer.drawing.pixelSize[1]

scale[1] = -scale[1]
scale[0] *= w/640.0
Expand Down

0 comments on commit 15d6230

Please sign in to comment.