diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-02-03 19:14:44 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-02-03 19:14:44 (GMT) |
| commit | d0f18a15fad28f80ae3d486df4efd9916b22dc22 (patch) | |
| tree | f3baf543e53b16ebc5034f4bd5f0e8c9d4db876a /wasp/boards/simulator | |
| parent | 127df66335657cbd77539a509d507a4fcfb403b2 (diff) | |
wasp: simulator: Fix column and row select
Diffstat (limited to 'wasp/boards/simulator')
| -rw-r--r-- | wasp/boards/simulator/display.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wasp/boards/simulator/display.py b/wasp/boards/simulator/display.py index dc303d9..72423f9 100644 --- a/wasp/boards/simulator/display.py +++ b/wasp/boards/simulator/display.py @@ -62,11 +62,11 @@ class ST7789Sim(object): pixelview[self.y][self.x] = pixel self.x += 1 - if self.x > self.rowclip[1]: - self.x = self.rowclip[0] + if self.x > self.colclip[1]: + self.x = self.colclip[0] self.y += 1 - if self.y > self.colclip[1]: - self.y = self.colclip[0] + if self.y > self.rowclip[1]: + self.y = self.rowclip[0] # Forcibly release the surface to ensure it is unlocked del pixelview |
