From c503931e725824a05b0d54210ba72f9d96e265cd Mon Sep 17 00:00:00 2001 From: Ross Wilson Date: Sun, 22 May 2016 21:36:57 +0700 Subject: [PATCH] Write PPM with Y reversed --- pymlac/Display.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pymlac/Display.py b/pymlac/Display.py index b2cd174..ab6a4e5 100644 --- a/pymlac/Display.py +++ b/pymlac/Display.py @@ -182,7 +182,8 @@ class Display(object): y = y1 for x in range(x1, x2 + 1): (xx, yy) = (y, x) if is_steep else (x, y) - self.array[yy*self.ScaleMaxX + xx] = self.DrawColour + yyy = self.ScaleMaxX - yy + self.array[yyy*self.ScaleMaxX + xx] = self.DrawColour error -= abs(dy) if error < 0: y += ystep